[GOODIE] Squeak Smalltalk: A Quick Reference (v. 0.0)

Randal L. Schwartz merlyn at stonehenge.com
Sun Dec 5 17:58:24 UTC 1999


>>>>> "Ian" == Ian Piumarta <Ian.Piumarta at inria.fr> writes:

Ian> Instantiating a ProtoObject currently does crash the system (that's a
Ian> little strong: let's say that rather that it causes the system to
Ian> abort deliberately) because of a recursive "message not understood"
Ian> error.  I personally consider this to be a (serious) bug.  Since *all*
Ian> the subclasses of ProtoObject implement #doesNotUnderstand:,
Ian> ProtoObject should also implement it to raise either a
Ian> MessageNotUnderstood Error, or (much) better still a
Ian> SubclassResponsibility Error.  At the very least, something like:

ProtoObject> doesNotUnderstand: aMessage
Ian>         Error new signal: 'this object cannot respond to this message'

Ian> I hope some of that makes sense, and is useful.

I get this, and second it.  (As if we needed some sort of parliamentary
procedure. :)

-- 
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