unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Alan Grover <awgrover@mail.msen.com>
Subject: Re: Generic-methods from multiple modules should  merge
Date: Tue, 10 Jan 2006 20:20:40 -0500	[thread overview]
Message-ID: <43C45D68.9070708@mail.msen.com> (raw)
In-Reply-To: <87d5izu49p.fsf@zagadka.de>

Yes, lovely section in the NEWS outlining the exact problem, and the
behavior I expect. Though I think that merge-generics should be the
default behavior.

I suppose I'll have to to try to upgrade.

Marius Vollmer wrote:
> 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.
> 


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


      reply	other threads:[~2006-01-11  1:20 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
2006-01-11  1:20   ` Alan Grover [this message]

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=43C45D68.9070708@mail.msen.com \
    --to=awgrover@mail.msen.com \
    /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).