List Info

Thread: Re: lexical aliases in 5.10?




Re: lexical aliases in 5.10?
user name
2007-05-29 17:34:00
On Tue, May 29, 2007 at 05:07:16PM -0300, Flavio S. Glock
wrote:
>2007/5/29, Matthijs van Duin <xmathcpan.org>:
>>(I initially tried to have lexical aliasing have
"global" effect
>>whereever that particular instance-of-lexical is
visible, but that is
>>simply not possible in Perl, so rather than doing it
inconsistently I
>>chose not to do it at all)
>
>Does Data::Bind allow this global effect?

I sincerely doubt that, since perl simply doesn't store the
neccessary 
info to correctly locate all the right pads to do the
substitution in 
(especially in complex cases involving closures and/or
recursion iirc)

Like I said, I tried to do it with D::A, but because I came
to the 
conclusion that it can't be done correctly in all cases, I
chose to it 
locally only, rather than globally-but-wrong-in-some-cases.

-- 
Matthijs van Duin  --  May the Forth be with you!

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )