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: Neil Jerram
Subject: Re: [goops] adding a number class with generic methods
Date: Sun, 07 May 2006 00:07:25 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Mikael Djurfeldt" <address@hidden> writes:

> On 5/4/06, Marco Maggi <address@hidden> 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





reply via email to

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