Croquet float bug

Joshua 'Schwa' Gargus schwa at cc.gatech.edu
Mon Jun 23 15:59:50 UTC 2003


On Mon, Jun 23, 2003 at 10:58:24AM +0200, Andreas Raab wrote:
> Whoa!
> 
> > Even though I've scratched my immediate itch, I'm still curious about
> > getting to the bottom of this, so I'll poke around a bit more.
> 
> The primitive checks for the argument being a float array succeed - but
> wrongly! Regular floats pass all those checks (since they are words and no
> pointers) and from the VMs POV a Float looks like a FloatArray of size 2. Ho
> hum. Thanks for finding this. So much for excessive type checks on the
> arguments ;-)

Well, at least it doesn't cause a crash at a random location in the VM, which
would be very difficult to debug ;-)

Joshua

> 
> Cheers,
>   - Andreas
> 



More information about the Squeak-dev mailing list