mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
8 lines
159 B
ChaiScript
8 lines
159 B
ChaiScript
def bob::bob() { }
|
|
def bob::fred(e) : e < 10 { assert_equal(true, e<10) }
|
|
def bob::fred(e) { assert_equal(true, e >= 10) }
|
|
|
|
var b = bob()
|
|
b.fred(3)
|
|
b.fred(12)
|