Re: Q: eval

2004-11-09 Thread Dan Sugalski
At 6:23 PM +0100 11/9/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: That goto's bogus and shouldn't work. I think it does right now, but I'm OK with making it not work -- it *shouldn't*, since in perl the eval's an anonymous sub, which means you've done a goto out of a sub

Re: Q: eval

2004-11-09 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > That goto's bogus and shouldn't work. I think it does right now, but > I'm OK with making it not work -- it *shouldn't*, since in perl the > eval's an anonymous sub, which means you've done a goto out of a sub > and into another, which... well, that's not

Re: Q: eval

2004-11-09 Thread Dan Sugalski
At 3:42 PM +0100 11/9/04, Leopold Toetsch wrote: Dan Sugalski wrote: This was specified ages ago You have skipped one question: Nope. Language designer call. (Granted, in this case if the call is "make it work" then the language designer and I get to have a chat, but... :) how would PIR code of

Re: Q: eval

2004-11-09 Thread Leopold Toetsch
Dan Sugalski wrote: This was specified ages ago You have skipped one question: how would PIR code of this eval() look like, and specifically, what about that "goto"? # #! perl -w # my $i= 5; # LAB: #$i++; #eval("goto LAB if ($i==6)"); #print "$i\n"; # # 7 # You can of course answe

Re: Q: eval

2004-11-09 Thread Dan Sugalski
At 1:48 PM +0100 11/8/04, Leopold Toetsch wrote: I'd like to cleanup eval.pmc and dynamic code compiling a bit. But before that I'd like to know: Which granularity do we allow for eval()ed code? Can that be an expression or statement too or is it always at least an (anonymous) subroutine? This w

Q: eval

2004-11-08 Thread Leopold Toetsch
I'd like to cleanup eval.pmc and dynamic code compiling a bit. But before that I'd like to know: Which granularity do we allow for eval()ed code? Can that be an expression or statement too or is it always at least an (anonymous) subroutine? Does the compiled code see Parrot registers of the call