Newsgroups: perl.perl6.language
From: l...@luqui.org (Luke Palmer)
Date: Tue, 29 Jun 2004 17:31:29 -0600
Local: Tues, Jun 29 2004 7:31 pm
Subject: Re: undo()?
Jonadab the Unsightly One writes:
> Michele Dondi <bla...@pcteor1.mi.infn.it> writes: Oh no! Someone doesn't understand continuations! How could this > > I must say I've still not read all apocalypses, and OTOH I suspect > Hmmm... > If we have $foo.undo(), then we will want a multi-step undo to go with > I heard a rumour we were getting continuations (a la Scheme). They happen?! :-) You need two things to bring the state of the process back to an earlier Say you're in the kitchen in front of the refrigerator, thinking about a A continuation doesn't save data. It's just a closure that closes over > You could make the programmer specify which variables he wants delta A much more useful way to do this would be: > data for, and then any *others* wouldn't keep it and wouldn't be > undoable. > use undo <<foo bar baz>>; # Or use the funny characters I can't type. use undo << $foo $bar $baz >>; That is, you save the state at certain points in execution and remember I don't want to think about what happens when you write: use undo << $state >>; Luke > --
> $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} > split//,"ten.thgirb\@badanoj$/ --";$\=$ ;-> ();print$/ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||