Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://738672]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-05-23 04:08 GMT
Find Nodes?
    Voting Booth?