Suggestions for PAST::Block

2008-02-04 Thread Andrew Parker
nstead, but I admit that I don't fully understand what :lex does) * Add 'closure' to create a lexical closure ('immediate' but without the call) Thanks, Andrew Parker

Re: closures and lexicals: question about PCT generated PIR.

2008-02-06 Thread Andrew Parker
quot;bar". I say almost because you won't be able to call _block14 either :) Before you can call _block14 you need to bind it to an environment using newclosure (notice that that is what it is doing for _block15). Andrew Parker On Feb 6, 2008, at 4:19 PM, Patrick R. Michaud wrote

Problem with lexical scoping

2008-02-11 Thread Andrew Parker
in a scope. I'm not sure what is wrong. The solutions that I can think of for this are: * mangle variable names in PAST so that we can distinquish the scopes from the var names * change how PIR and LexInfos work to pay attention to the order in which lexical vars are declared and used in scopes Any ideas? Andrew Parker

Re: Problem with lexical scoping

2008-02-12 Thread Andrew Parker
int that there was something lacking was wrong. It is more that I didn't look enough and parrot has so much that it was hard to find :P Thanks for the patience and the help. Andrew Parker On Feb 12, 2008, at 8:00 PM, Patrick R. Michaud wrote: On Mon, Feb 11, 2008 at 10:27:27PM +0

Re: Problem with lexical scoping

2008-02-12 Thread Andrew Parker
t won't (or will take a lot of hoop jumping). Andrew Parker On Feb 12, 2008, at 5:13 AM, Bob Rogers wrote: From: Andrew Parker <[EMAIL PROTECTED]> Date: Mon, 11 Feb 2008 22:27:27 +0100 Hi all, I was checking a couple of things in the compiler that I wrote and put toget