[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicitly using existing function as generic fails in 1.9
From: |
Andy Wingo |
Subject: |
Re: implicitly using existing function as generic fails in 1.9 |
Date: |
Fri, 11 Feb 2011 18:48:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
On Wed 02 Feb 2011 15:02, Jan Nieuwenhuizen <address@hidden> 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/