guile-user
[Top][All Lists]
Advanced

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

Re: Divide by zero or how to overload a function


From: Dirk Herrmann
Subject: Re: Divide by zero or how to overload a function
Date: Thu, 22 Nov 2001 22:35:05 +0100 (MET)

On Tue, 23 Oct 2001, Chris Cramer wrote:

> On Tue, Oct 23, 2001 at 01:29:46AM -0400, Keith Wright wrote:
> > Now here's a question for the wizards.
> > Why does (/ 0) have a different result from (/ 1 0)?
[...]
> It looks like a bug. Whatever the result (/ 1.0 0.0) should be, (/ 0)
> and (/ 1 0) should give the same result. I guess just add a check for
> zero right before the "return scm_make_real..." line?

Fixed, thanks.

Best regards
Dirk Herrmann




reply via email to

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