Allow copy_constructers to be called with other types (i.e. var a:string = "hi" calls fun copy_construct(it:char**):void

This commit is contained in:
Nathan Braswell
2015-06-07 19:54:08 -04:00
parent 7abab02fbf
commit 69048ebc31
4 changed files with 16 additions and 6 deletions

View File

@@ -25,6 +25,10 @@ obj string (Object) {
data.copy_construct(&old->data)
}
fun copy_construct(old: char**): void {
construct(*old)
}
fun destruct():void {
data.destruct()
}