6 lines
106 B
ChaiScript
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))
|