2013-04-10 21:29:02 -07:00
|
|
|
f(x) {
|
2016-12-05 22:15:40 +01:00
|
|
|
return "This " . x
|
2013-04-10 21:29:02 -07:00
|
|
|
}
|
2016-12-05 22:15:40 +01:00
|
|
|
|
|
|
|
|
g(x) {
|
|
|
|
|
return "That " . x
|
2013-04-10 21:29:02 -07:00
|
|
|
}
|
2016-12-05 22:15:40 +01:00
|
|
|
|
|
|
|
|
show(fun) {
|
|
|
|
|
msgbox % %fun%("works")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
show(Func("f")) ; either create a Func object
|
|
|
|
|
show("g") ; or just name the function
|
2013-04-10 21:29:02 -07:00
|
|
|
return
|