bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: generic * and 0


From: Kevin Ryde
Subject: Re: generic * and 0
Date: Mon, 04 Dec 2006 11:26:00 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

While nosing around nearby stuff I noticed

        (* 0 1.0)  => 0
        (* 0 1+1i) => 0
but
        (* 1.0  0) => 0.0
        (* 1+1i 0) => 0.0

which seems a bit inconsistent.  R5RS "Exactness" reads like either
exact or inexact is permitted, but I imagine it ought to be the same
whichever way around you write the args.  I think I'll change the
latter two to exact 0.

Attachment: numbers.c.mul-exact0-16.diff
Description: Text document

Attachment: numbers.c.mul-exact0-18.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]