Re: [genius-list] Quirks and buglist for 0.4.6 (with a patch even :)

From: George <jirka_at_5z.com>
Date: Wed, 8 Sep 1999 19:24:38 -0700

On Wed, Sep 08, 1999 at 01:54:00AM -0400, Squeak wrote:
> Quirk: (10!)%5 != 10! mod 5 ( 0 != 1)
>
> That is probably correct behavior though.

Yes, I'm not too sure at how the mod arithmetic evaluation should really
work, but it's not just modding the result

> Quirk: 1^(-1) mod n yields "Can't do mods on floating or rational"
>
> I would think 1/1 would be simplified to 1?

fixed

> Quirk: multiple mods ALMOST work right
> 51 mod 49 mod 7
> Division by zero!
> = 2
>
> a mod b mod c mod d mod e mod f ... = a mod gcd(b,c,d,e,f,...)
>
> You give the right answer but the divide by zero is disturbing :)

Hmmm, need to figure out where that is coming from

> Quirk: 1 mod 0.5 = (1mod0.5) (Can't do mod calculations of non-integers)
> Yet (1mod0.5) is a parse error, suggest putting space around the "mod"
> word in the print e_tree or whatever.

fixed

> Quibble: Sometimes you use TRUE and sometimes you use 1 as the last arg to
> print_e_tree. To make code leaner and meaner, it is good to make it easily
> readable first :)

not really, print_etree takes an integer, not a TRUE/FALSE

> Grin: Those internel functions written in gel are cool. (Cool as in oh god
> don't keep them that way, but wow what a cool temp. hack).

yes, it's for putting something in so that it's there, not to be used
otherwise :)

> Quibble: on line 1065 ish of mpwrap ... it would be nice to note
> that that crazy if( q < 0 && f> 0) then f=-f stuff is a /* XXX HACK to
> get around bug in gmp */ Just in case someone else maintains the code at a
> later point.

yup put that in there

> Question: Why downgrade to bison-1.25 from bison-1.27? Was there a problem
> with bison-1.27? (I use bison-1.27 too so I'm curious)

huh?

> That should be the patch for the only real bug.

applied

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:
          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
Received on Wed Sep 08 1999 - 19:24:46 CDT

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:02 CDT