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

We wantlvalue(), too!

Tom Christiansen
March 22, 2000 06:50
We wantlvalue(), too!
Message ID:
To be usable, the :lvalue attribute really needs two things added.

1) A function needs to be able to figure out whether it was called
   in an lvalue context of now.  Rather than (just) adding an umpteenth
   return to caller(), there should be a wantlvalue() built-in.  You cannot
   write something like 

2) You also need access to the right hand side, just like tie's STORE

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