<?xml version="1.0" encoding="windows-1252"?>
<node id="494258" title="Re^4: How A Technique Becomes Over-rated" created="2005-09-22 15:17:27" updated="2005-09-22 11:17:27">
<type id="11">
note</type>
<author id="294463">
QM</author>
<data>
<field name="doctext">
Sticking my nose in where it doesn't belong...
&lt;p&gt;
If I understand it right, one of the points of [Limbic~Region|L~R]'s [node://492651|original post] was that the comparison function can be defined by the user, and passed in as a coderef. If I understand your post, you seem to be saying that the same end result can be achieved through OO and classes.
&lt;p&gt;
But I'm fuzzy on what you suggest should happen in OO. If the class has a compare method that doesn't work for my current problem, do I subclass it and create my own &lt;code&gt;maxstr&lt;/code&gt;? Do I append to the class my own method?
&lt;code&gt;
...
package SomeClass;
sub my_compare {...}
...
&lt;/code&gt;
What if each object needs a unique compare function? What if these functions aren't known at compile time? What if there are so many functions that it's difficult to give them all unique and useful names? 
&lt;p&gt;
I'm not sure that any of these questions are easier or harder to answer in OO vs. closures.
&lt;div class="pmsig"&gt;&lt;div class="pmsig-294463"&gt;
&lt;p&gt;-QM&lt;br /&gt;
--&lt;br /&gt;
Quantum Mechanics: The dreams stuff is made of
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
492651</field>
<field name="parent_node">
494182</field>
</data>
</node>
