Hi guys,
I'm compiling a script the usual way which pushes the script as a function onto the stack. Normally to execute the script I'd just call the function, however, what I'd like to do is instead call a function from within the closure, without executing any of the closure's top-level code, for example:
MyScript.nut:
Code:
function test()
{
::print("hi"); // I want to see this
}
::print("ho"); // But not this
Is there any way for me to get at the 'test' function within the script without executing any code around it?
Many thanks