Re: Q: scope exit

2004-12-15 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: >>But that still doesn't solve the problem that a file-handle (after >>cleaning lexicals) is still in a PMC register, when the C >>opcode is run. > True but, and this is the good part, that's not our problem. It is, I > think, safe to assume that language c

Re: Q: scope exit

2004-12-14 Thread Patrick R. Michaud
On Tue, Dec 14, 2004 at 10:49:31AM -0500, Dan Sugalski wrote: > >Yes. I'll presume that the first Perl6 compiler will just emit closures > >for each block. > > Ah, I hope not. I *really* hope not. (Paying attention Patrick? :) > That'd be rather slower than necessary in most cases. Yup, I'm payi

Re: Q: scope exit

2004-12-14 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 8:07 AM +0100 12/10/04, Leopold Toetsch wrote: >>* What is the intended usage of the action handler? >>* Specifically is this also ment for lazy DOD runs? >>* How is the relationship to the C opcode? > The one thing that I figure *will* be done is that

Re: Q: scope exit

2004-12-13 Thread Dan Sugalski
At 3:31 PM +0100 12/14/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 10:19 AM +0100 12/14/04, Leopold Toetsch wrote: Which does argue that it ought not be a sub, I suppose, but something simpler. A plain bsr sort of thing. A bsr doesn't change anything. It has to return

Re: Q: scope exit

2004-12-13 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 10:19 AM +0100 12/14/04, Leopold Toetsch wrote: > Which does argue that it ought not be a sub, I suppose, but something > simpler. A plain bsr sort of thing. A bsr doesn't change anything. It has to return to the caller. That thing, where it's returnin

Re: Q: scope exit

2004-12-13 Thread Dan Sugalski
At 10:19 AM +0100 12/14/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 8:07 AM +0100 12/10/04, Leopold Toetsch wrote: * What is the intended usage of the action handler? * Specifically is this also ment for lazy DOD runs? * How is the relationship to the C opcode? The one

Re: Q: scope exit (was: Exceptions, sub cleanup, and scope exit)

2004-12-13 Thread Dan Sugalski
At 8:07 AM +0100 12/10/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: ... A scope exit action is put in place on the control stack with: pushaction Psub * What is the intended usage of the action handler? * Specifically is this also ment for lazy DOD runs? * How is the r