From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: Smart variables, dumb variables Date: 15 Aug 2002 21:43:00 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87y9b7q56j.fsf@zagadka.ping.de> References: <87y9bajzfp.fsf@zagadka.ping.de> <20020814080715.GA6068@www> <87fzxhteri.fsf@zagadka.ping.de> <20020814202831.GA7443@www> <877kittbdr.fsf@zagadka.ping.de> <20020814210634.GA7220@www> <871y91taen.fsf@zagadka.ping.de> <20020815080643.GA8225@www> <87hehwqdwr.fsf@zagadka.ping.de> <20020815172709.GA9304@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029440593 11037 127.0.0.1 (15 Aug 2002 19:43:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2002 19:43:13 +0000 (UTC) Cc: tomas@fabula.de, guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17fQWW-0002rt-00 for ; Thu, 15 Aug 2002 21:43:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17fQXR-00064s-00; Thu, 15 Aug 2002 15:44:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17fQWN-0005r3-00 for guile-devel@gnu.org; Thu, 15 Aug 2002 15:43:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17fQWL-0005qp-00 for guile-devel@gnu.org; Thu, 15 Aug 2002 15:43:02 -0400 Original-Received: from dialin.speedway42.dip179.dokom.de ([195.138.42.179] helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.10) id 17fQWK-0005qh-00 for guile-devel@gnu.org; Thu, 15 Aug 2002 15:43:00 -0400 Original-Received: (qmail 809 invoked by uid 1000); 15 Aug 2002 19:43:00 -0000 Original-To: rm@fabula.de In-Reply-To: <20020815172709.GA9304@www> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1099 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1099 rm@fabula.de writes: > BTW, i'm not really happy with guiles current behavior regarding declaring > a generic that's allready existing. I'd expect that a (define-generic foo) > on a function that's allready will be a no-opt. Me neither. > (use-modules (oop goops)) > + > => # > (define-method (+ (a ) (b )) (string-append a b)) > + > => # > > Humpf! I know, this is actually a nice optimisation in this code, but > it shouldn't be so visible. Should it print # from the start? > So, if i understand you right, the compiler would generate code that > contains _two_ branches, one for the fast numeric code (inlined) and > one for the normal generic method dispatch? Yes. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel