Hopefully finished ADTs, still a bug preventing self-hosting

This commit is contained in:
Nathan Braswell
2016-03-20 05:14:26 -04:00
parent 884d71f007
commit 2344ba917b
4 changed files with 36 additions and 13 deletions

View File

@@ -15,6 +15,10 @@ fun to_string(in: int): string {
return ret
}
fun operator+(first: *char, second: ref string): string {
return string(first) + second
}
fun string(in:*char):string {
var out.construct(in):string
return out