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: Sat, 02 Dec 2006 06:56:28 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

SZAVAI Gyula <address@hidden> writes:
>
> (use-modules (oop goops))
> (define-class <c> ())
> (define-method (* a (b <c>)) #t)
> (* 0 (make <c>))
> ==> 0

Thanks, that's a bug.

> -      switch (xx)
> -       {
> -        case 0: return x; break;
> -        case 1: return y; break;
> -       }
> -

Though that's not the fix (it breaks 0 * bignum, and changes 0 * real
and complex).




reply via email to

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