mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
6 lines
180 B
ChaiScript
6 lines
180 B
ChaiScript
def bob::bob(x) : x < 10 { print("constructed less than 10: " + x.to_string()) }
|
|
def bob::bob(x) { print("constructed any old: " + x.to_string()) }
|
|
|
|
var b = bob(12)
|
|
var c = bob(3)
|