guile-user
[Top][All Lists]
Advanced

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

Re: merging generic methods from different modules


From: Lars J. Aas
Subject: Re: merging generic methods from different modules
Date: Wed, 6 Dec 2000 15:35:33 +0100
User-agent: Mutt/1.2.5i

  Hi Thomas,

On Wed, Dec 06, 2000 at 01:19:49PM +0100, Thomas Wawrzinek wrote:
: Lars J. Aas wrote:
:  > If two different modules have generic methods with the same name,
:  > the method from the module imported lastly will override the other
:  > completely.
: 
: Well, only if the method has the same specializers. 

Not the way I see it.  Try the attached modules and test-script (the test
script will fix GUILE_LOAD_PATH, so just dump everything to the same dir)
to see my problem.  The specializers of the two foo methods are not the
same.

[It was actually the module first in the list that overrides the second one,
but which method took precedence over which was not the point of my original
mail.]

  Lars J

Attachment: mod1.scm
Description: Text document

Attachment: mod2.scm
Description: Text document

Attachment: test.sh
Description: Bourne shell script


reply via email to

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