Open Solumin opened 10 years ago
I'm tempted to unmarshal all 32-bit integers as gLong types (64 bit), just so they follow the hierarchy a little better.
Did you try to do that? I saw you changed the widen and other stuff. Is it working now?
I got it working for BINARY_ADD but it's so clunky and ugly.
On Sun, Oct 19, 2014 at 4:54 PM, Cibele notifications@github.com wrote:
Did you try to do that? I saw you changed the widen and other stuff. Is it working now?
— Reply to this email directly or view it on GitHub https://github.com/Solumin/Systems630-Project1/issues/5#issuecomment-59664882 .
I've added a sample of mixed arithmetic to BINARY_ADD. It's really messy -- another way to do this would be great.
One problem is that we're treating 32-bit integers as 'numbers', so they look like floating-point numbers, which messes up the widening hierarchy (see the comment on interpreter.ts:widen or Python Numeric Types)