<?xml version="1.0" encoding="windows-1252"?>
<node id="219886" title="Re: lvalue considered harmful..." created="2002-12-14 14:54:25" updated="2005-08-14 18:35:47">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;p&gt;Agreed. 
&lt;p&gt;Though I would argue that the problem is not the concept of lvalue subs that is at fault, but just the current implementation.
 
&lt;p&gt;As they stand currently, they are almost completly useless. The fact that there is no way to access the value being assigned prior to it's assignment, and that any attempt to check it after assignment prevents the assignment, is simply bewildering. 

&lt;p&gt;Why the value is not made available to the sub as the last value in @_ I simply don't understand. The current implementation where the assigned value magically overwrites the last available lvalue in the sub if there is one and breaks if there isn't is just simply broken.

&lt;p&gt;Shame. No wonder nobody uses them.
&lt;hr&gt;
&lt;font size=1&gt;
&lt;p&gt;Examine what is said, not who speaks.&lt;/p&gt;&lt;/font&gt;</field>
<field name="root_node">
218778</field>
<field name="parent_node">
219867</field>
</data>
</node>
