guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [goops] adding a number class with generic methods


From: Mikael Djurfeldt
Subject: Re: [goops] adding a number class with generic methods
Date: Thu, 4 May 2006 21:26:04 +0200

On 5/4/06, Marco Maggi <address@hidden> wrote:
"Neil Jerram" wrote:
>"Marco Maggi" <address@hidden> writes:
> "address@hidden" 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 =)" 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 = which you
(implicitly) *import* into your module.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]