From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Grover Newsgroups: gmane.lisp.guile.user Subject: Re: Generic-methods from multiple modules should merge Date: Tue, 10 Jan 2006 20:20:40 -0500 Message-ID: <43C45D68.9070708@mail.msen.com> References: <43C40CB3.5070702@mail.msen.com> <87d5izu49p.fsf@zagadka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136942362 29144 80.91.229.2 (11 Jan 2006 01:19:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 01:19:22 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 11 02:19:20 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 1EwUdy-000871-Gh for guile-user@m.gmane.org; Wed, 11 Jan 2006 02:19:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwUfy-0001m5-E8 for guile-user@m.gmane.org; Tue, 10 Jan 2006 20:21:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwUfe-0001iA-OG for guile-user@gnu.org; Tue, 10 Jan 2006 20:21:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwUfa-0001bZ-FL for guile-user@gnu.org; Tue, 10 Jan 2006 20:21:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwUfa-0001bV-Bp for guile-user@gnu.org; Tue, 10 Jan 2006 20:20:58 -0500 Original-Received: from [148.59.80.48] (helo=ww8.msen.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EwUi8-0005kf-2u for guile-user@gnu.org; Tue, 10 Jan 2006 20:23:36 -0500 X-Sent-To: Original-Received: from [192.168.1.221] (pool-151-196-6-194.balt.east.verizon.net [151.196.6.194]) (authenticated bits=0) by ww8.msen.com (8.13.4/8.13.4) with ESMTP id k0B1Ims5073146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 10 Jan 2006 20:18:51 -0500 (EST) (envelope-from awgrover@mail.msen.com) User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en Original-To: guile-user@gnu.org In-Reply-To: <87d5izu49p.fsf@zagadka.de> Received-SPF: Pass (sender authenticated); receiver=(null); client-ip=151.196.6.194; envelope-from= Received-SPF: Pass (sender authenticated); receiver=(null); client-ip=151.196.6.194; helo=[192.168.1.221] X-Milter: Spamilter (Reciever: ww8.msen.com; Sender-ip: 151.196.6.194; Sender-helo: [192.168.1.221]; ) 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:5079 Archived-At: Yes, lovely section in the NEWS outlining the exact problem, and the behavior I expect. Though I think that merge-generics should be the default behavior. I suppose I'll have to to try to upgrade. Marius Vollmer wrote: > 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. > _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user