A kinda ugly/hacky addition, but overloading () as operator() works now!

This commit is contained in:
Nathan Braswell committed 2015-05-16 00:09:50 -04:00
1 parent 795f8715ff
commit aafb52d108
4 files changed
+38 -4

No files matched your search

@@ -0,0 +1,2 @@
7
hi
+17
View File
@@ -0,0 +1,17 @@
import io:*
typedef FuncObj {
fun operator()(a:int, b:char*): void {
println(a)
println(b)
}
}
fun main():int {
var obj:FuncObj
obj(7, "hi")
return 0;
}