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...
_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to