Files
ChaiScript/unittests/object_attr.chai
2009-09-19 15:32:12 +00:00

6 lines
106 B
ChaiScript

attr bob::z
def bob::bob() { this.z = 10 }
var x = bob()
def bob::fred(x) { this.z - x }
print(x.fred(3))