unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: SZAVAI Gyula <szgyg@ludens.elte.hu>
Subject: generic * and 0
Date: Wed, 29 Nov 2006 18:58:27 +0100	[thread overview]
Message-ID: <456DCA43.6030705@ludens.elte.hu> (raw)


guile-1.8-20061126

(use-modules (oop goops))
(define-class <c> ())
(define-method (* a (b <c>)) #t)
(* 0 (make <c>))
==> 0



--- orig/libguile/numbers.c     2006-11-29 18:09:22.393764800 +0100
+++ mod/libguile/numbers.c      2006-11-29 18:10:22.319934400 +0100
@@ -4416,12 +4416,6 @@
     intbig:
       xx = SCM_I_INUM (x);

-      switch (xx)
-       {
-        case 0: return x; break;
-        case 1: return y; break;
-       }
-
       if (SCM_I_INUMP (y))
        {
          long yy = SCM_I_INUM (y);



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


             reply	other threads:[~2006-11-29 17:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 17:58 SZAVAI Gyula [this message]
2006-12-01 19:56 ` generic * and 0 Kevin Ryde
2006-12-01 20:22   ` Mikael Djurfeldt
2006-12-01 21:52     ` Kevin Ryde
2006-12-04  0:26       ` Kevin Ryde
2006-12-04 18:26         ` Mikael Djurfeldt
2006-12-05  0:00           ` Kevin Ryde
2006-12-05 14:07             ` SZAVAI Gyula
2006-12-05 15:33               ` Mikael Djurfeldt
2006-12-05 15:51                 ` Ludovic Courtès
2006-12-05 19:42                   ` Mikael Djurfeldt
2006-12-06 15:52             ` Marius Vollmer
2006-12-07 15:28               ` Mikael Djurfeldt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=456DCA43.6030705@ludens.elte.hu \
    --to=szgyg@ludens.elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).