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:
1 parent
7abab02fbf
commit
69048ebc31
4 files changed
+16
-6
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user