mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-08 01:36:54 +08:00
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))
|