|
From: Sam S. <sd...@gn...> - 2005-06-06 19:36:59
|
Hi Bruno, > * Bruno Haible <oe...@py...> [2005-06-06 20:02:28 +0200]: > > 2005-06-06 Sam Steingold <sd...@gn...> > > * compelem.d (N_imagpart): use the normal Rational/Float contagion > rules for reals > * clispload.lsp (*expected-failures*): removed MISC.598 > > This patch does not fit in a code cool-down phase because > 1. it changes user-visible and documented behaviour, > 2. it is not a unanimous bug fix. IMO > - it should be protected by a global variable *COMPLEX-NUMBERS-ANSI* > that is part of the big *ANSI* switch. > - it is the beginning of a new area of work. The whole scope of this > *COMPLEX-NUMBERS-ANSI* is about 2 weeks of work. I disagree. <http://www.lisp.org/HyperSpec/Body/fun_realpartcm_imagpart.html> If number is real, then realpart returns number and imagpart returns (* 0 number), which has the effect that the imaginary part of a rational is 0 and that of a float is a floating-point zero of the same format. thus this is a bug fix for *FLOATING-POINT-RATIONAL-CONTAGION-ANSI*. (thanks to Paul Dietz for pointing this out). -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.iris.org.il> <http://www.openvotingconsortium.org/> <http://www.palestinefacts.org/> <http://www.mideasttruth.com/> Abandon all hope, all ye who press Enter. |