At 8:56 PM +0200 8/24/04, Leopold Toetsch wrote:
Dan Sugalski <[EMAIL PROTECTED]> wrote:
Okay, so:

4) Addition and subtraction of ints produces an int

???

Yeah, that was wrong. Later fixed. :)


 5) Multiplication of two ints produces a bignum or an int, depending
 on the result

Why that difference?

At this point I'm tempted to not have the difference and unconditionally produce a bignum.


 Int <op> Int gives Bigint or Int (whatever fits)
   for <op> in (abs, neg, add, sub, mul)

And don't forget corner cases.

I think we've got the corner cases dealt with. I think...

What about bitwise ops BTW, e.g. left shift.

Gah! Haven't gotten there yet. We're still working on basic math...

--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to