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 22:02:09 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87n0rnq4am.fsf@zagadka.ping.de> References: <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> <87y9b7q56j.fsf@zagadka.ping.de> <20020815200255.GA9588@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029441732 14624 127.0.0.1 (15 Aug 2002 20:02:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2002 20:02:12 +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 17fQos-0003nl-00 for ; Thu, 15 Aug 2002 22:02:10 +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 17fQpn-0001Xr-00; Thu, 15 Aug 2002 16:03:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17fQos-0001Uv-00 for guile-devel@gnu.org; Thu, 15 Aug 2002 16:02:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17fQoq-0001Uj-00 for guile-devel@gnu.org; Thu, 15 Aug 2002 16:02:09 -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 17fQoq-0001Ue-00 for guile-devel@gnu.org; Thu, 15 Aug 2002 16:02:08 -0400 Original-Received: (qmail 874 invoked by uid 1000); 15 Aug 2002 20:02:09 -0000 Original-To: rm@fabula.de In-Reply-To: <20020815200255.GA9588@www> Original-Lines: 25 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:1101 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1101 rm@fabula.de writes: > > Should it print # from the start? > > Since it actually _is_ a generic from the start, yes, i think it should. Ok, agreed. Objections? > Of course, what i'm really after is a test like 'generic? foo' so that > i can write a macro that does what i think guile should do. Make 'foo' > a generic iff it's not one allready. You can't really do that I think. You can't change a procedure into a generic function. What you can do is change the value of a variable to point to a new function, which is generic. But maybe that is what you want. There is no 'generic?' but you can maybe define it like so (define (generic? obj) (or (is-a? obj ) (is-a? obj ))) -- 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