Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-29 Thread Klaas-Jan Stol
On Jan 24, 2008 5:45 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Sat, Jan 19, 2008 at 12:24:37PM +0100, Klaas-Jan Stol wrote: > > as far as I could tell there's no support for goto statements in PCT > (that > > is, special nodes or something). > > I don't know whether there are any plan

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Bob Rogers
From: Larry Wall <[EMAIL PROTECTED]> Date: Thu, 24 Jan 2008 09:52:16 -0800 In addition to what Patrick said, which is all right on the mark, I'd like to point out a few additional subtleties. Perl borrows an important idea from Lisp and separates the notion of stack unwinding fr

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Larry Wall
In addition to what Patrick said, which is all right on the mark, I'd like to point out a few additional subtleties. Perl borrows an important idea from Lisp and separates the notion of stack unwinding from that of exception handling; when you throw an exception (including a control exception) you

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread jerry gay
On Jan 24, 2008 9:02 AM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Jan 24, 2008 at 11:58:02AM -0500, Mark J. Reed wrote: > > Sorry if I'm missing something here, since I haven't dived into the > > innards of Parrot, but I thought control flow in Parrot was based on > > continuations?

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Patrick R. Michaud
On Thu, Jan 24, 2008 at 11:58:02AM -0500, Mark J. Reed wrote: > Sorry if I'm missing something here, since I haven't dived into the > innards of Parrot, but I thought control flow in Parrot was based on > continuations? Presumably 'control exceptions' are really just > lexicaly-scoped exceptions,

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Mark J. Reed
Sorry if I'm missing something here, since I haven't dived into the innards of Parrot, but I thought control flow in Parrot was based on continuations? Presumably 'control exceptions' are really just lexicaly-scoped exceptions, and exceptions are in turn just outgoing-only continuations. If you h

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Patrick R. Michaud
On Sat, Jan 19, 2008 at 12:24:37PM +0100, Klaas-Jan Stol wrote: > as far as I could tell there's no support for goto statements in PCT (that > is, special nodes or something). > I don't know whether there are any plans to add special support for it, but > here's an idea I was thinking about. It wou

[PCT] PAST nodes for goto and friends, labels.

2008-01-19 Thread Klaas-Jan Stol
hi, as far as I could tell there's no support for goto statements in PCT (that is, special nodes or something). I don't know whether there are any plans to add special support for it, but here's an idea I was thinking about. It would be rather helpful, instead of having this handle by each languag