[ENH] Message / Symbol / Block compatibility

Randal L. Schwartz merlyn at stonehenge.com
Wed May 26 12:05:12 UTC 1999


>>>>> "Marcel" == Marcel Weiher <marcel at system.de> writes:

>> Have it return an object instantiated with a class with a superclass 
>> of nil.  Look at ObjectTracer (I think that's it) for an example that 
>> works.

Marcel> Yes, I think that's what I did:

Marcel> UndefinedObject subclass: #Trampoline
Marcel> 	instanceVariableNames: 'collection iterationMessage '
Marcel> 	classVariableNames: ''
Marcel> 	poolDictionaries: ''
Marcel> 	category: 'Collections-Support'

Marcel> This may have gotten mangled between fixing a typo and creating the  
Marcel> changeset.  I hope the new changeset is better.

No, an UndefinedObject has Object somewhere in its superclass chain.
I'm talking about setting the superclass to *nil*.

UndefinedObject ~= nil

:)

Here's the class definition for ObjectTracer:

nil subclass: #ObjectTracer
	instanceVariableNames: 'tracedObject recursionFlag '
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Kernel-Objects'

Look at it to make sure you're doing the right thing.

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn at stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn at teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me





More information about the Squeak-dev mailing list