Alan Grover <[EMAIL PROTECTED]> 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 _______________________________________________ Guile-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-user
