On Sep 24, 2004, at 6:51 PM, Aaron Sherman wrote:

On Fri, 2004-09-24 at 12:36, Jeff Clites wrote:

Ha, you're example is actually wrong (but tricked me for a second).
Here's a simpler case to demonstrate that you can't look up lexicals by
name (in Perl5):

You are, of course, correct. If I'd been ignorant of that in the first place, this would be much less embarassing ;-)

No need to be embarrassed--it's easy to trick yourself. (I had forgotten myself, until I recently tried it while thinking whether lexical pads really needed a by-name API.)


However, the point is still sound, and that WILL work in P6, as I
understand it.

Hmm, that's too bad--it could be quite an opportunity for optimization, if you could use-and-discard lexical information at compile-time, when you know there's no eval around to need it.


JEff



Reply via email to