[ENH] Message / Symbol / Block compatibility

Marcel Weiher marcel at system.de
Wed May 26 11:51:52 UTC 1999


> From: merlyn at stonehenge.com (Randal L. Schwartz)
>
> >>>>> "Doug" == Doug Way <dway at mat.net> writes:
>
> Doug> I noticed one minor downside to the Trampoline versus the  
other methods,
> Doug> which is that you can't pass messages to it which Object  
happens to
> Doug> understand, such as 'asString'  (since the Trampoline uses
> Doug> #doesNotUnderstand:).  I wonder if there's any way around that. 
>
> 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.

Yes, I think that's what I did:

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

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

Marcel





More information about the Squeak-dev mailing list