instances that know #new, and Perl OO
Randal L. Schwartz
merlyn at stonehenge.com
Tue May 20 09:20:31 UTC 2003
>>>>> "Richard" == Richard A O'Keefe <ok at cs.otago.ac.nz> writes:
Richard> Point is, ThingFactory>>new didn't make ThingFactories,
Richard> it made Things. It was every bit as much unlike a "copy" method
Richard> as the ordinary use of #new.
Right, so it was more like a Class than like an instance of any class.
Still, "anObject new" didn't mean "anObject clone" or "anObject
species new".
OK, I think my research is complete. Thanks for the feedback.
Apparently, as an aside, I'm told that VisualWorks experimented with
adding:
Object>>new
self species new
But that was later removed, apparently. Ugh. That hack just looks
trouble waiting to happen. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
More information about the Squeak-dev
mailing list
|