Fix Id Literals so that they are keyed off an Id search. This allows us to add operator overloading on the parse side.

This commit is contained in:
Jonathan Turner
2009-10-14 13:51:35 +00:00
parent c51d14fb13
commit 9827345213
3 changed files with 48 additions and 52 deletions

View File

@@ -0,0 +1,8 @@
def Bob::`+`(y) { this.x + y.x }
def Bob::Bob() { }
attr Bob::x
var b = Bob()
var c = Bob()
b.x = 4
c.x = 5
print(b+c)

View File

@@ -0,0 +1 @@
9