<?xml version="1.0" encoding="windows-1252"?>
<node id="464201" title="Re^3: Objects with Private Variables" created="2005-06-07 05:36:43" updated="2005-07-07 14:31:54">
<type id="11">
note</type>
<author id="422269">
misterb101</author>
<data>
<field name="doctext">
Looking good David!&lt;br&gt;&lt;br&gt;

The only thing I would change is to let $self be the ref to the closure and use another name for the actual data storage. 
This way you always know that $self is the ref to your object. For instance if you want to call a couple of private methods in your constructor after blessing your variable it would be more staightforward to do&lt;br&gt;
&lt;code&gt;$self-&gt;_privateMethod();&lt;/code&gt;&lt;br&gt;
than&lt;br&gt;
&lt;code&gt;$access-&gt;_privateMethod();&lt;/code&gt;&lt;br&gt;&lt;br&gt;

Cheers,&lt;br&gt;
Rob</field>
<field name="root_node">
8251</field>
<field name="parent_node">
272227</field>
</data>
</node>
