Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: Force caller to return - reflection

by Prof Vince (Friar)
on Jan 24, 2009 at 11:40 UTC ( #738672=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Force caller to return - reflection
in thread Force caller to return - reflection

unwind() doesn't actually impact program flow
Oh yes it does. Just how do you think you can return values from an upper scope without restarting from there? Not mentioning that that would be of very limited use if it didn't!

Continuation::Escape gives an alternate interface to it, which effectively relieves you from having to specify the target context yourself. But OTOH it requires you to be able to "mark" the context you want to return to. Reading its source code will surely teach you how it builds up on unwind.

Comment on Re^3: Force caller to return - reflection
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://738672]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-12-01 00:36 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (789 votes), past polls