If you remove the Traits you get exactly the double (at least in my moose
image).
As far as I remember, Traits are not subclasses of Objects and they do not have
a metaclass for each Trait.
Cheers,
Alejandro
> On May 22, 2015, at 12:39 PM, Eliot Miranda wrote:
>
> Oops, my math was wrong and
Oops, my math was wrong and so I got it wrong way round. But you know what I
mean...
Eliot (phone)
On May 22, 2015, at 8:37 AM, Eliot Miranda wrote:
> Hi All,
>
> On May 21, 2015, at 1:14 PM, Esteban Lorenzano wrote:
>
>> Smalltalk allClassesAndTraits size. "5057"
>> Object withAllSubclass
Hi All,
On May 21, 2015, at 1:14 PM, Esteban Lorenzano wrote:
> Smalltalk allClassesAndTraits size. "5057"
> Object withAllSubclasses size. “9900"
As others have said, meta classes account for many of these, but I would have
expect something closer to twice as many. What does this tell you?
> On 21 May 2015, at 23:52, Marcus Denker wrote:
>
>
>> On 21 May 2015, at 22:14, Esteban Lorenzano wrote:
>>
>> Smalltalk allClassesAndTraits size. "5057"
>> Object withAllSubclasses size. “9900"
>>
>> I really do not understand :)
>>
>
> Metaclasses. For every X there is "X class” which
> Am 21.05.2015 um 22:14 schrieb Esteban Lorenzano :
>
> Smalltalk allClassesAndTraits size. "5057"
> Object withAllSubclasses size. “9900"
>
> I really do not understand :)
And I enjoy those times that you do not understand something. Makes me feel
closer to you :P
Norbert
> On 21 May 2015, at 22:14, Esteban Lorenzano wrote:
>
> Smalltalk allClassesAndTraits size. "5057"
> Object withAllSubclasses size. “9900"
>
> I really do not understand :)
>
Metaclasses. For every X there is "X class” which is (eventually) a subclass of
Object, too.
Marcus
You should try something like (Object withAllSubclasses reject: #isMeta)
size...
Also maybe start with ProtoObject...
In Squeak, I have
((Smalltalk allClassesAndTraits reject: #isTrait) difference: (ProtoObject
withAllSubclasses reject: #isMeta)) size = 0
2015-05-21 22:14 GMT+02:00 Esteban Lorenz
Smalltalk allClassesAndTraits size. "5057"
Object withAllSubclasses size. “9900"
I really do not understand :)
Esteban