From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: Do we have to worry about the names of generic functions? Date: Thu, 13 May 2004 20:08:54 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <87lljwurm1.fsf@ivanova.rotty.yi.org> References: <1084358048.15175.235.camel@localhost> <87wu3h2xli.fsf@ivanova.rotty.yi.org> <87n04ctdrf.fsf@trouble.defaultvalue.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084471832 14997 80.91.224.253 (13 May 2004 18:10:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 May 2004 18:10:32 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu May 13 20:10:20 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOKex-0003YD-00 for ; Thu, 13 May 2004 20:10:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOKev-0002FY-Qv for guile-user@m.gmane.org; Thu, 13 May 2004 14:10:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOKeW-00028N-KF for guile-user@gnu.org; Thu, 13 May 2004 14:09:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOKdz-00021S-I1 for guile-user@gnu.org; Thu, 13 May 2004 14:09:51 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1BOKdy-000201-OE for guile-user@gnu.org; Thu, 13 May 2004 14:09:19 -0400 Original-Received: (qmail 6484 invoked by uid 65534); 13 May 2004 18:09:15 -0000 Original-Received: from chello080109053157.14.14.univie.teleweb.at (EHLO garibaldi) (80.109.53.157) by mail.gmx.net (mp026) with SMTP; 13 May 2004 20:09:15 +0200 X-Authenticated: #3102804 Original-Received: from ivanova.rhinosaur.lan ([192.168.1.9] helo=ivanova) by garibaldi with esmtp (Exim 4.32) id 1BOKdb-0001pC-4q; Thu, 13 May 2004 20:09:12 +0200 Original-Received: from andy by ivanova with local (Exim 4.33) id 1BOKda-000477-Pz; Thu, 13 May 2004 20:08:54 +0200 Original-To: Rob Browning In-Reply-To: <87n04ctdrf.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Thu, 13 May 2004 12:53:24 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3169 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3169 Rob Browning writes: > Andreas Rottmann writes: > >> Yes, but when the non-generic are procedures, you can "upgrade" them: >> >> (define quit (ensure-generic quit)) > > Hmm, but since you really don't know about all the other modules out > there, it seems like the safest thing when using really general names > might be to do this for all of your exported generics. Although that > feels a bit crufty, and I presume still doesn't protect you from > exports that aren't a procedure or a method. > You'd only do the above when you *know* a module imported has e.g. "quit". You can't do much about stuff in modules you don't import; I wonder what "#:generics merge" does when it encounters a procedure and generic that have the same name... That aside, another reason I think prefixes are basically unecessary is that the importer can always do something like (use-modules ((g-wrap) #:renamer (symbol-prefix-proc 'gw:))) if he insists on prefixed names. You could do something even more fancy like prefixing only the non-class symbols (i.e. those not like ). Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Make free software, not war! _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user