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

Re: how should %^H work with lexical pramas

Thread Previous | Thread Next
David Nicol
March 29, 2006 15:33
Re: how should %^H work with lexical pramas
Message ID:
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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About