[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generic-methods from multiple modules should merge
From: |
Marius Vollmer |
Subject: |
Re: Generic-methods from multiple modules should merge |
Date: |
Wed, 11 Jan 2006 00:06:26 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Alan Grover <address@hidden> writes:
> I think the right thing is to have the module system "merge" the generic
> methods. Thus, when importing a module, if the module's symbol is bound
> to a generic-method, and if the symbol is already bound to a
> generic-method (in the "using" module), add the methods to the existing
> generic-method. Then, all of the methods are visible under the generic name.
You can do this by using a 'duplicates' handler when defining the
importing module. The 'duplicates' handler determines what is going
to be done to bindings with the same name. The 'merge-generics'
handler is probably what you are looking for. See NEWS in CVS HEAD.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405