Re: Continuations (again)

2004-03-21 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: > So why does the generated pasm work where the PIR doesn't? The generated PASM is all one compilation unit. Your (local) labels are fixed up properly. In your PIR code you had local labels (w/o) underscore refering to different compilation units. > I can

Re: Continuations (again)

2004-03-21 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: [ Continuation usage ] > Dan? Could you mandate this? Please? As long as there are no usage patterns that precisely describe how Continuations should work and how a PIR syntax could look like, there is little to mandate ;) > Preserving self and the curren

Re: Continuations (again)

2004-03-21 Thread Piers Cawley
Piers Cawley <[EMAIL PROTECTED]> writes: > Leopold Toetsch <[EMAIL PROTECTED]> writes: > >> Piers Cawley <[EMAIL PROTECTED]> wrote: >>> So, I'm trying to get my head 'round parrot's continuations. It's my >>> understanding that, at creation time, a Continuation closes over the >>> current user sta

Re: Continuations (again)

2004-03-21 Thread Piers Cawley
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Piers Cawley <[EMAIL PROTECTED]> wrote: >> So, I'm trying to get my head 'round parrot's continuations. It's my >> understanding that, at creation time, a Continuation closes over the >> current user stacks, control stack and lexical pad (and possibly

Re: Continuations (again)

2004-03-21 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: > So, I'm trying to get my head 'round parrot's continuations. It's my > understanding that, at creation time, a Continuation closes over the > current user stacks, control stack and lexical pad (and possibly some > other stuff but those'll do for now). Yes

Re: Continuations (again)

2004-03-21 Thread Gregor N. Purdy
I don't know about the continuation stuff, but you can't assume that running imc --> pasm --> exec does the same thing as imc --> exec. I ran into that before, and I don't think its going to get fixed until the new imcc lands, at which point old-school pasm might even be gone (although I don't know

Continuations (again)

2004-03-21 Thread Piers Cawley
So, I'm trying to get my head 'round parrot's continuations. It's my understanding that, at creation time, a Continuation closes over the current user stacks, control stack and lexical pad (and possibly some other stuff but those'll do for now). So, it seems to me that the following code should p