#Can we use function as another function argument ?

1 messages · Page 1 of 1 (latest)

static jungle
#

Something like that:

function example(callback: function):
    callback()

function hello_world():
    print "Hello world"

on load:
    example(hello_world())

sorry if they are some syntaxes error, i haven't made any script from a while

meager parrot
#

Not natively

#

You can use reflect though