mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
8 lines
160 B
ChaiScript
8 lines
160 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) }
|
|
|
|
auto b = bob()
|
|
b.fred(3)
|
|
b.fred(12)
|