Nasal library: Difference between revisions

Jump to navigation Jump to search
Line 251: Line 251:


var myFunction = bind(get_math_e, math); # bind get_math_e to the math namespace, so that math.e is immediately available to get_math_e
var myFunction = bind(get_math_e, math); # bind get_math_e to the math namespace, so that math.e is immediately available to get_math_e
debug.dump(closure(myFunction)); # print the namespace of get_math_e
debug.dump(closure(myFunction)); # print the hash of the namespace "get_math_e"


print(myFunction());
print(myFunction());
1,376

edits

Navigation menu