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

@@ -2,6 +2,7 @@ import io
import vector
import string
import mem
import set
import util
import conversions
@@ -55,12 +56,14 @@ obj regex(Object) {
}
fun copy_construct(old:regex*):void {
begin = old->begin
regexString.copy_construct(&old->regexString)
//begin = old->begin
//regexString.copy_construct(&old->regexString)
construct(old->regexString)
}
fun destruct():void {
regexString.destruct()
//mem::safe_recursive_delete(begin, fun(it: regexState*): set::set<regexState*> { return set::set(it); } )
}
fun operator=(other: regex):void {