Comment #3 on issue 4315 by
[hidden email]: #findElementOrNil: should
be replaced by #scanFor: and deprecated
http://code.google.com/p/pharo/issues/detail?id=4315The behaviour of both methods is different. findElementOrNil: raises an
error when a free slot is not found, while scanFor: returns 0.
I understand that this should never happen, but still I think it would be
better to raise an error than returning 0.
Looking at the senders, no one seems to check the returned value, assuming
that it will be different from 0.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker