From: Andy Wingo <wingo@pobox.com>
To: Jan Nieuwenhuizen <janneke-list@xs4all.nl>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: implicitly using existing function as generic fails in 1.9
Date: Fri, 11 Feb 2011 18:48:48 +0100 [thread overview]
Message-ID: <m3ei7ecvi7.fsf@unquote.localdomain> (raw)
In-Reply-To: <1296655370.19670.270.camel@vuurvlieg> (Jan Nieuwenhuizen's message of "Wed, 02 Feb 2011 15:02:50 +0100")
On Wed 02 Feb 2011 15:02, Jan Nieuwenhuizen <janneke-list@xs4all.nl> writes:
> WARNING: (use): `remove!' imported from both (remove) and (srfi srfi-1)
As far as I can tell, it never worked to merge generics between a
regular procedure and a generic. So the only way that your remove! case
could have worked would be to have the define-method create a generic
that fell back to the old value; but that does not appear to work:
scheme@(guile-user)> (define-method (remove! (s <symbol>)) (pk 'hey))
ERROR: In procedure scm-error:
ERROR: #<procedure remove! (_ _)> is not a valid generic function
And indeed that does not appear to work with 1.8.
I don't understand what's going on here, really. Do you?
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-02-11 17:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 14:02 implicitly using existing function as generic fails in 1.9 Jan Nieuwenhuizen
2011-02-11 17:48 ` Andy Wingo [this message]
2011-02-11 18:53 ` Jan Nieuwenhuizen
2011-02-12 10:32 ` Andy Wingo
2011-05-23 20:42 ` Andy Wingo
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=m3ei7ecvi7.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=janneke-list@xs4all.nl \
/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).