Fixed the close over methods and member vars bug, but there's something remaining causing the safe_recursive_delete not to work. Gotta save progress and do other stuff

This commit is contained in:
Nathan Braswell
2015-06-27 18:06:02 -04:00
parent 8feb9819b8
commit c50c977a9e
20 changed files with 370 additions and 40 deletions

View File

@@ -34,6 +34,16 @@ obj string (Object) {
construct(*old)
}
fun operator=(str: char*): void {
destruct();
construct(str)
}
fun operator=(str: string): void {
destruct();
data.copy_construct(&str.data)
}
fun destruct():void {
data.destruct()
}
@@ -51,11 +61,6 @@ obj string (Object) {
}
fun length():int { return data.size; }
fun operator=(str: char*): void {
destruct();
construct(str)
}
fun operator+(str: char*): string {
var newStr.construct(str):string
var ret.construct(data + newStr.data):string