Skip to content

Callback

Wang Renxin edited this page Dec 16, 2015 · 18 revisions

This is a placeholder for the moment.

The CALL statement is used to get a routine value itself as:

def fun(msg)
	print msg;
enddef

routine = call(fun) ' get a routine value
routine("hello") ' invoke a routine value

Be aware it requires a pair of brackets.

Clone this wiki locally