Boolean expressions (was: Re: [squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest))

Stéphane Rollandin lecteur at zogotounga.net
Thu Mar 4 21:21:09 UTC 2010


> If you have a lot of protocols you can use the super fast
> primitive supported #pointsTo: and have a lot cleaner (and possibly
> faster) code:
>
> is: aSymbol
>
>   	^#(Morph MySpecializedMorph FooMorph BarMorph) pointsTo: aSymbol
>


wow. thanks for the pointer, I wasn't aware of this one :)

Stef





More information about the Squeak-dev mailing list