Re: Lexical variables, scratchpads, closures, ...
by Dan Sugalski other posts by this author
Aug 1 2002 6:23PM messages near this date
Re: Lexical variables, scratchpads, closures, ...
|
Re: Lexical variables, scratchpads, closures, ...
At 11:22 PM -0400 7/31/02, Melvin Smith wrote:
> >Conclusion
> >
> > It seems to me that to implement lexical variables, we only need to
> > implement the set_pmc method and to extend the Sub class so that it
> > contains both a code pointer and a scratchpad.
>
> I agree with you. It can be done without special ops that we just added.
> I see no reason why we can't add an op that allows you to get the
> scratchpad into a Px reg and use it just as a Hash or Array. I expect
> we might want to.
I'd rather keep the separate interface to lexicals and globals.
That'll make it much easier to change the implementation without
breaking existing bytecode.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@[...].org have teddy bears and even
teddy bears get drunk
Thread:
Jerome Vouillon
Melvin Smith
Jerome Vouillon
Sean O'Rourke
Jerome Vouillon
Dan Sugalski
Dan Sugalski
Simon Cozens
Nicholas Clark
Sean O'Rourke
Jerome Vouillon
Nicholas Clark
Jerome Vouillon
Jonathan Sillito
Dave Mitchell
Melvin Smith
Sean O'Rourke
Dan Sugalski
Dan Sugalski
Jonathan Sillito
Jerome Vouillon
Melvin Smith
Jerome Vouillon
Melvin Smith
Jerome Vouillon
Jonathan Sillito
Sean O'Rourke
|