[Vm-dev] 0.0 is negative with CogVM
Eliot Miranda
eliot.miranda at gmail.com
Mon Sep 20 17:15:56 UTC 2010
Hi Levente,
On Mon, Sep 20, 2010 at 7:56 AM, Levente Uzonyi <leves at elte.hu> wrote:
>
> Hi!
>
>
> I downloaded the prebuilt CogVM from
> http://www.mirandabanda.org/files/Cog/VM/VM.r2310/ for Windows and found
> that 0.0 has strange behavior:
>
> 0.0 negative. "true"
> 0.0 < 0. "true"
> 0.0 as: WordArray. "a WordArray(0 0)"
>
> while in SqueakVM
>
> 0.0 negative. " false"
> 0.0 < 0. "false"
> 0.0 as: WordArray. "a WordArray(0 0)"
>
Thank you! I have been looking superficially at Nicholas' NaN tests and
have fixed two of the problems (comparisons of NaNs are ordered as in the
interpreter and division by 0.0 now fails). But in doing that was seeing
some strange results in closeTo: et al. This symptom looks to be related
but it could underlie a lot of problems. At least it's an easily debuggable
case.
self assert: (Compiler evaluate: '0.0') negative not
>
> Levente
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100920/dd667bcd/attachment.htm
More information about the Vm-dev
mailing list