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