develooper Front page | perl.perl6.internals | Postings from October 2005

Lexicals (was: Variable registers)

Thread Previous
Leopold Toetsch
October 3, 2005 03:25
Lexicals (was: Variable registers)
Message ID:
Klaas-Jan Stol wrote:

> maybe I misunderstand, but does the above mean that lexicals are stored 
> in registers, instead of storing them in  scratchpads? (with lexicals 
> being local variables in a function, with the addition of being also 
> accessible from nested functions)

The storage of lexicals will be in Parrot registers, yes. The plan is to 
assign all static (compile-time known) lexicals to distinct Parrot 
registers. Dynamic lexicals (tcl upvars or such) will still be handled 
with a hash, and name lookup remains the same.

Basically: the current runtime-only lexical handling will be extended to 
provide a static scheme too.

Chip is currently preparing a PDD covering all the details.

> klaas-jan


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About