Implementation of allInstances (Re: Foundation question)

Lex Spoon lex at cc.gatech.edu
Wed Jul 12 10:53:31 UTC 2000


"Andreas Kuckartz" <a.kuckartz at ping.de> wrote:
> > Class has no instances- check 'Class allInstances' to verify this.
> 
> This only shows that something seems to be broken in Squeak. Time for some
> nostalgia.
> 

There's a difference in allInstances and allSubInstances, parallel to
isKindOf: versus isMemberOf: (though I can never remember which of the
later is which).

	Smalltalk allClasses size -> 1309
	Class allSubInstances size -> 1309
	Behavior allSubInstances size -> 2619


(And those were typed and executed write in my email composition window
:))


-Lex





More information about the Squeak-dev mailing list