Bug in STSymTable.st

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in STSymTable.st

MrGwen
Hi Paolo,

Should solve a problem with floats like NaN:

77c77
<       map := Dictionary new: aSize.
---
 >       map := IdentityDictionary new: aSize.

Gwen

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Bug in STSymTable.st

Paolo Bonzini-2
On 04/14/2011 04:28 PM, Gwenael Casaccio wrote:
> Hi Paolo,
>
> Should solve a problem with floats like NaN:
>
> 77c77
> < map := Dictionary new: aSize.
> ---
>  > map := IdentityDictionary new: aSize.

Not optimal because equal literals should be mapped to the same object.
  Perhaps we need a LiteralDictionary testing on a different kind of
equality (#= for everything except Floats where it would test the binary
representation).

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk