Dan Sugalski wrote:
> 
> 
> I'd also like to see lexicals addressed by name through some sort of symbol
> table-ish thing. Maybe:
> 
>    $PAD{my_var}[-1]
> 
> would give a ref to the lexical my_var that exists one level of scope out
> from the current, or at least the my_var that's masked by the most recent
> declaration of my_var. (So [0] is the current, [-1] the next most recent,
> [-2] the one outside that, and so on)

I like the idea... it's evil.  (I hope it never makes it into the
language though.)
Can you imagine doing this for 'local'?  That would lead to some pretty
neat obfuscated code...

Hildo

Reply via email to