[LA.pm] Classes with heterogeneous objects?

Randal L. Schwartz merlyn at stonehenge.com
Fri Mar 2 21:06:57 PST 2012


>>>>> "Mike" == Mike MacKenzie <mackenziemikebus at yahoo.com> writes:

Mike> Can any of you guys think of an interesting use case for a class
Mike> that creates objects with disparate internal structures like
Mike> this?   Or do you know of an existing module that does this?

The big problem would be the amount of sheer navel-gazing you'd need
within the class to do anything like accessing the attributes.

Hint:  if you have to use "ref" a lot in your design, you lose.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion


More information about the Losangeles-pm mailing list