remove: and GOODS -- identity problems?
Ragnar Hojland Espinosa
ragnar.hojland at linalco.com
Tue Jul 6 13:25:51 UTC 2004
I have anObj inside aSet that I pull out of GOODS, and that I want to
remove.
aSet remove: anObj
This fails with Error: Object is not in the collection.
This:
detected _ aSet detect: [:each | each = anObj ]
aSet remove: detected.
does detect it (also with ==) but remove: fails too.
This:
aSet _ aSet select: [:each | each ~= anObj ]
works.
Why is remove: complaining?
--
Ragnar Hojland - Project Manager
Linalco "Specialists in Linux and Free Software"
http://www.linalco.com Tel: +34-91-4561700
More information about the Squeak-dev
mailing list
|