"Marcel" == Marcel Weiher marcel@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.
squeak-dev@lists.squeakfoundation.org