[squeak-dev] the NewCompiler and complex numbers

Martin Beck martin.beck at hpi.uni-potsdam.de
Wed Oct 15 08:59:25 UTC 2008


Hi Michael,

I don't know, what the bug is, but I have version 281 from the Universe
in 3.10 and for me it generates the correct bytecodes. On SqueakSource,
you even find a newer version 288. The mentioned test works, too.

Best regards,
Martin

Michael Haupt wrote:
> Hi,
> 
> this is puzzling: in a 3.9 image, using the "old" compiler, evaluating
> "6 + 6 i" and "6 - 6 i" works fine. Enabling the new compiler, "6 + 6
> i" still works, but "6 - 6 i" does not because the compiler converts
> it to something nonsensical:
> 
>      pushConstant: 6
>      pushLit: i
>      send: -
>      ...
> 
> What the heck?
> 
> So why would the compiler, all of a sudden, think that i is not a
> message selector when it appears after some -?
> 
> If this has already been reported, I apologise for creating noise. In
> any case, I'd be happy if someone could give me a hint on how to fix
> this. BTW it's NewCompiler 174 from SqueakMap.
> 
> Best,
> 
> Michael
> 




More information about the Squeak-dev mailing list