[Newbies] Collection>>Includes:...
Mathieu
mathk.sue at gmail.com
Sat Aug 5 10:31:43 UTC 2006
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...).
But tell us a bit more.
Why do you want = and so on?
Math
More information about the Beginners
mailing list