[Newbies] Collection>>Includes:...

florent trolat trolat.florent at laposte.net
Sat Aug 5 10:56:31 UTC 2006


Mathieu a écrit :
> florent trolat a écrit :
>   
>> Hi,
>>
>> I've define an '=' message for an oject and I want to use this object in
>> a Collection.
>>
>> I've seen that 'incudes:' message use '=' or not '==' and it's not fun
>> for me!
>>
>> I think that '=' message is to compare two objects and  '==' to know if 
>> the two object are one!
>>
>> So for me 'includes:' must use '==' or not '='...
>>
>> May be I have not understand something...
>>
>> Thanks to help me....
>>     
>
> Hi florent
>
> You can do
>
> ***********
> = anObject
>
> 	^anObject == self
>
> ***********
>
> But it is not pretty so the best way is to remove = and the default
> behavior of = is == (unless inherit from someone else...).
>   
Ok I understand ... it was my job to see this, sorry...


More information about the Beginners mailing list