Hi guys, during my experimentations, I found out that #plop = 'plop' --> true no matter what the symbol and his textual representation are. Is that expected ? Ben
On 08.11.2011 14:44, Benjamin wrote:
Hi guys,
during my experimentations, I found out that
#plop = 'plop' --> true
no matter what the symbol and his textual representation are.
Is that expected ?
Ben
http://code.google.com/p/pharo/issues/detail?id=331 Cheers, Henry
Am 08.11.2011 um 14:54 schrieb Henrik Sperre Johansen:
On 08.11.2011 14:44, Benjamin wrote:
Hi guys,
during my experimentations, I found out that
#plop = 'plop' --> true
no matter what the symbol and his textual representation are.
Is that expected ?
Ben
http://code.google.com/p/pharo/issues/detail?id=331
Cheers, Henry
Arrrgghh, this issue starts so well and ends so badly :) Ok, if I take the last words from Marcus/Stephane than I suggest to change e.g. SequenceableCollection>>= otherCollection ... self == otherCollection ifTrue: [^ true]. self species == otherCollection species ifFalse: [^ false]. ^ self hasEqualElements: otherCollection to SequenceableCollection>>= otherCollection ... self == otherCollection ifTrue: [^ true]. ^ self hasEqualElements: otherCollection Would be nice and cozy without the rubbish species check :) Norbert
In fact I would not change it because it can probably break the system during the next decade. We should just avoid to have 'kjhjkh', anObject and other ugly practices to get added in the system Stef On Nov 8, 2011, at 3:16 PM, Norbert Hartl wrote:
Am 08.11.2011 um 14:54 schrieb Henrik Sperre Johansen:
On 08.11.2011 14:44, Benjamin wrote:
Hi guys,
during my experimentations, I found out that
#plop = 'plop' --> true
no matter what the symbol and his textual representation are.
Is that expected ?
Ben
http://code.google.com/p/pharo/issues/detail?id=331
Cheers, Henry
Arrrgghh, this issue starts so well and ends so badly :) Ok, if I take the last words from Marcus/Stephane than I suggest to change e.g.
SequenceableCollection>>= otherCollection ... self == otherCollection ifTrue: [^ true]. self species == otherCollection species ifFalse: [^ false]. ^ self hasEqualElements: otherCollection
to
SequenceableCollection>>= otherCollection ... self == otherCollection ifTrue: [^ true]. ^ self hasEqualElements: otherCollection
Would be nice and cozy without the rubbish species check :)
Norbert
participants (4)
-
Benjamin -
Henrik Sperre Johansen -
Norbert Hartl -
Stéphane Ducasse