Maximiliano Taborda wrote > Seeing the same with aconcagua > ... > teaspoons := BaseUnit named: 'teaspoons'. > aHalfTeaspoon := Measure amount: 1/2 unit: teaspoons. > anotherHalfTeaspoon := Measure amount: 0.5 unit: teaspoons. > > "#hash" > aHalfTeaspoon hash = anotherHalfTeaspoon hash "this evaluate to true" > > So, I don't see where is the bug.
It seems to only appear when comparing measures with derived units... baseUnit := BaseUnit named: 'tablespoon'. unit := ProportionalDerivedUnit baseUnit: baseUnit conversionFactor: 1/3 named: 'teaspoon'. m1 := Measure amount: 1/2 unit: unit. m2 := Measure amount: 0.5 unit: unit. m1 hash = m2 hash. "this evaluate to false" ----- Cheers, Sean -- View this message in context: http://forum.world.st/Aconcagua-Hashing-Bug-tp4759622p4759745.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
