From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mikael Djurfeldt" Newsgroups: gmane.lisp.guile.user Subject: Re: [goops] adding a number class with generic methods Date: Thu, 4 May 2006 21:26:04 +0200 Message-ID: <66e540fe0605041226q2a570820xc4eb08fc68051eb5@mail.gmail.com> References: Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146770777 26847 80.91.229.2 (4 May 2006 19:26:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 19:26:17 +0000 (UTC) Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu May 04 21:26:15 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 1FbjSl-0001W6-M2 for guile-user@m.gmane.org; Thu, 04 May 2006 21:26:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbjSl-0008LJ-5s for guile-user@m.gmane.org; Thu, 04 May 2006 15:26:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbjSh-0008LD-Np for guile-user@gnu.org; Thu, 04 May 2006 15:26:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbjSg-0008Jm-6t for guile-user@gnu.org; Thu, 04 May 2006 15:26:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbjSg-0008Jh-4D for guile-user@gnu.org; Thu, 04 May 2006 15:26:06 -0400 Original-Received: from [64.233.166.183] (helo=py-out-1112.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FbjSf-0000Io-Tb for guile-user@gnu.org; Thu, 04 May 2006 15:26:06 -0400 Original-Received: by py-out-1112.google.com with SMTP id d80so606722pyd for ; Thu, 04 May 2006 12:26:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZN7VSaixB/MM05RG0mJHXun80z6J/ISou0LjImKvCFUcGO6lL3tjTfB5rjlFAo3pZESG2R8xGo6IvQiNUFUgw/fXEbNWtnhNV3I5c4Gvakoj/YcJ/RBXvl6t4LFp4obFwHUS1A9vksaZsdef1N7rjw5dD4lRQPz2ThQJFFssa+I= Original-Received: by 10.35.84.12 with SMTP id m12mr1468965pyl; Thu, 04 May 2006 12:26:05 -0700 (PDT) Original-Received: by 10.35.69.9 with HTTP; Thu, 4 May 2006 12:26:04 -0700 (PDT) Original-To: "Marco Maggi" In-Reply-To: Content-Disposition: inline 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:5289 Archived-At: On 5/4/06, Marco Maggi wrote: > "Neil Jerram" wrote: > >"Marco Maggi" writes: > > "marco.maggi-ipsu@poste.it" wrote: > >> I do not understand why the first solution does not work; > >>I've tried different combinations of functions but there is > >>something I am missing. > > > > Damn... it seems to work if I do not EXPORT the generic > > methods. > > > >You mean if you remove the "(export =3D)" line? > > 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 =3D which you (implicitly) *import* into your module. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user