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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user