Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: Re: Re: (Perl6) Groking Continuations

by John M. Dlugosz (Monsignor)
on Apr 17, 2003 at 19:40 UTC ( #251315=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: (Perl6) Groking Continuations
in thread (Perl6) Groking Continuations

So you could have it both ways: the finally block is done every time, and the restore code on a temp variable is done only when it's gone for good?

But, I think many C++ programmers think of using the former for the purpose of the latter. Especially any code that wants to undo/fixate things by playing with the caller's blocks (as mentioned in earlier discussions) it needs to be clear that setting up something triggered when a variable goes out of scope (e.g. restore from a temp) is not the same as code that's simply inserted just before the close brace of that scope. Earlier, your comments about doing without prompt destruction made me think that we would indeed be using the "finally"-like mechanism for that purpose.


Comment on Re: Re: Re: Re: Re: Re: (Perl6) Groking Continuations

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-08-20 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls