[BUG]?? Problem sending allSubclasses to Object

John Brant brant at cs.uiuc.edu
Fri Apr 9 17:38:49 UTC 1999


At 10:08 AM 4/9/99 -0700, Carl Gundel wrote:
>In my own experiencem, I expect that...
>
>aClass allSubclasses           "returns classes"
>
>and
>
>aClass class allSubclasses     "returns metaclasses"
>
>I've noticed that the following returns a Set of metaclasses:
>
>Object allSubclasses
>
>Subclasses of Object return classes.  Is this a bug?  VisualWorks and 
>VisualSmalltalk both return classes for Object>>allSubclasses.

Actually, VisualWorks also returns metaclasses:
	Object allSubclasses includes: Object class ==> true
I think VSE's implementation is the "buggy" one, since it is not returning
all subclasses of Object:
	Object class withAllSuperclasses includes: Object ==> true


John Brant





More information about the Squeak-dev mailing list