mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
8 lines
155 B
ChaiScript
8 lines
155 B
ChaiScript
def bob::bob() { }
|
|
def bob::fred(e) : e < 10 { print("e less than 10") }
|
|
def bob::fred(e) { print("e is some value") }
|
|
|
|
var b = bob()
|
|
b.fred(3)
|
|
b.fred(12)
|