From: Marius Vollmer <mvo@zagadka.de>
Cc: guile-user@gnu.org
Subject: Re: Generic-methods from multiple modules should merge
Date: Wed, 11 Jan 2006 00:06:26 +0200 [thread overview]
Message-ID: <87d5izu49p.fsf@zagadka.de> (raw)
In-Reply-To: <43C40CB3.5070702@mail.msen.com> (Alan Grover's message of "Tue, 10 Jan 2006 14:36:19 -0500")
Alan Grover <awgrover@mail.msen.com> 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
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2006-01-10 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-10 19:36 Generic-methods from multiple modules should merge Alan Grover
2006-01-10 22:06 ` Marius Vollmer [this message]
2006-01-11 1:20 ` Alan Grover
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d5izu49p.fsf@zagadka.de \
--to=mvo@zagadka.de \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).