Welcome Guest Search | Active Topics | Log In | Register

Call function from within closure
#1 Posted : Monday, May 21, 2018 9:27:07 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/25/2016(UTC)
Posts: 1
Location: London

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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:


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
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.076 seconds.