From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: Generic-methods from multiple modules should merge Date: Wed, 11 Jan 2006 00:06:26 +0200 Message-ID: <87d5izu49p.fsf@zagadka.de> References: <43C40CB3.5070702@mail.msen.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136930828 23906 80.91.229.2 (10 Jan 2006 22:07:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 22:07:08 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 10 23:07:02 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EwRdV-0000lc-Rn for guile-user@m.gmane.org; Tue, 10 Jan 2006 23:06:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwRfV-0003mo-RG for guile-user@m.gmane.org; Tue, 10 Jan 2006 17:08:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwRfP-0003kr-9S for guile-user@gnu.org; Tue, 10 Jan 2006 17:08:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwRfO-0003jp-Lo for guile-user@gnu.org; Tue, 10 Jan 2006 17:08:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwRfO-0003jY-HO for guile-user@gnu.org; Tue, 10 Jan 2006 17:08:34 -0500 Original-Received: from [213.243.153.35] (helo=smtp2.pp.htv.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EwRhu-0000IQ-Pd for guile-user@gnu.org; Tue, 10 Jan 2006 17:11:11 -0500 Original-Received: from zagadka.ping.de (cs181072157.pp.htv.fi [82.181.72.157]) by smtp2.pp.htv.fi (Postfix) with SMTP id 10012296BAF for ; Wed, 11 Jan 2006 00:06:29 +0200 (EET) Original-Received: (qmail 14793 invoked by uid 1000); 11 Jan 2006 00:06:27 +0200 Original-To: Alan Grover In-Reply-To: <43C40CB3.5070702@mail.msen.com> (Alan Grover's message of "Tue, 10 Jan 2006 14:36:19 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5078 Archived-At: Alan Grover writes: > I think the right thing is to have the module system "merge" the generic > methods. Thus, when importing a module, if the module's symbol is bound > to a generic-method, and if the symbol is already bound to a > generic-method (in the "using" module), add the methods to the existing > generic-method. Then, all of the methods are visible under the generic name. You can do this by using a 'duplicates' handler when defining the importing module. The 'duplicates' handler determines what is going to be done to bindings with the same name. The 'merge-generics' handler is probably what you are looking for. See NEWS in CVS HEAD. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user