From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: [goops] adding a number class with generic methods Date: Sun, 07 May 2006 00:07:25 +0100 Message-ID: <87fyjmrbv6.fsf@ossau.uklinux.net> References: <66e540fe0605041226q2a570820xc4eb08fc68051eb5@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146956872 23974 80.91.229.2 (6 May 2006 23:07:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 May 2006 23:07:52 +0000 (UTC) Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun May 07 01:07:46 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 1FcVsD-0006B8-Rz for guile-user@m.gmane.org; Sun, 07 May 2006 01:07:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FcVsD-0000q3-DR for guile-user@m.gmane.org; Sat, 06 May 2006 19:07:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FcVs8-0000ps-BH for guile-user@gnu.org; Sat, 06 May 2006 19:07:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FcVs4-0000ml-I7 for guile-user@gnu.org; Sat, 06 May 2006 19:07:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FcVs4-0000mh-FT for guile-user@gnu.org; Sat, 06 May 2006 19:07:32 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FcVsY-0003ri-9C for guile-user@gnu.org; Sat, 06 May 2006 19:08:02 -0400 Original-Received: from laruns (host86-129-134-171.range86-129.btcentralplus.com [86.129.134.171]) by mail3.uklinux.net (Postfix) with ESMTP id 17A3F409FAE; Sat, 6 May 2006 23:07:31 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id D8C706F70A; Sun, 7 May 2006 00:07:25 +0100 (BST) Original-To: djurfeldt@nada.kth.se In-Reply-To: <66e540fe0605041226q2a570820xc4eb08fc68051eb5@mail.gmail.com> (Mikael Djurfeldt's message of "Thu, 4 May 2006 21:26:04 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (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:5292 Archived-At: "Mikael Djurfeldt" writes: > On 5/4/06, Marco Maggi wrote: >> >> Yes, with the following and no EXPORT invocation >> it works. > > Actually, logically this *is* how the code should be structured. If > you had created a novel generic function within your module, that > function should have been exported. But what you really want is just > to add methods to the pre-existing generic function = which you > (implicitly) *import* into your module. I agree that this explains why the export is not necessary (and hence why it works without it). But I don't yet understand why adding the export messes things up. Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user