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

Lexicals (was: Variable registers)

Thread Previous
From:
Leopold Toetsch
Date:
October 3, 2005 03:25
Subject:
Lexicals (was: Variable registers)
Message ID:
4341072B.6020004@toetsch.at
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

leo


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About