develooper Front page | perl.perl5.porters | Postings from March 2006

Re: how should %^H work with lexical pramas

Thread Previous | Thread Next
From:
David Nicol
Date:
March 29, 2006 15:33
Subject:
Re: how should %^H work with lexical pramas
Message ID:
934f64a20603291533i640ef571yc3cdded47b74aa80@mail.gmail.com
I see two requirements being described in this thread:

1:  a new data structure, the "masking hash", that has an attribute
that says what
     other (masking or non-masking) hash to look in when looking for a
nonexistent key

2:  an explicit scope identifier that is uniquely associated with a
lexical scope

Both pieces would be useful in other contexts.

Writing masking-hash as a pure-perl tie or overload or magic would be
simple enough,
it would be better to do it explicitly rather than just for the pragmatic hints.

Given masking-hash, C<local> could be rewritten using maskinghash instead pf
the current implementation and MJD's scalar localization tieing
exploits would all
fail.

Thread Previous | Thread Next


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