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 committed 2015-06-07 19:54:08 -04:00
1 parent 7abab02fbf
commit 69048ebc31
4 files changed
+16 -6

No files matched your search

+4
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()
}