From: Jan Nieuwenhuizen <janneke-list@xs4all.nl>
To: guile-devel <guile-devel@gnu.org>
Subject: implicitly using existing function as generic fails in 1.9
Date: Wed, 02 Feb 2011 15:02:50 +0100 [thread overview]
Message-ID: <1296655370.19670.270.camel@vuurvlieg> (raw)
[-- Attachment #1: Type: text/plain, Size: 2464 bytes --]
Hi,
See attached code, run using
./run.scm
1.8 says:
14:58:59 janneke@vuurvlieg:~/vc/schikkers-list/remove
$ ./run.scm
WARNING: (use): `remove!' imported from both (srfi srfi-1) and (remove)
<class>: remove!
1.9.14 says:
14:58:36 janneke@vuurvlieg:~/vc/schikkers-list/remove
$ rm -rf ~/.cache/guile/
14:59:10 janneke@vuurvlieg:~/vc/schikkers-list/remove
$ ./run.scm
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling ./run.scm
;;; compiling /home/janneke/vc/schikkers-list/remove/use.scm
;;; compiling /home/janneke/vc/schikkers-list/remove/remove.scm
;;; compiled /home/janneke/.cache/guile/ccache/2.0-0.T-LE-4/home/janneke/vc/schikkers-list/remove/remove.scm.go
WARNING: (use): `remove!' imported from both (remove) and (srfi srfi-1)
;;; compiled /home/janneke/.cache/guile/ccache/2.0-0.T-LE-4/home/janneke/vc/schikkers-list/remove/use.scm.go
;;; compiled /home/janneke/.cache/guile/ccache/2.0-0.T-LE-4/home/janneke/vc/schikkers-list/remove/run.scm.go
WARNING: (use): `remove!' imported from both (remove) and (srfi srfi-1)
WARNING: (use): `remove!' imported from both (srfi srfi-1) and (remove)
WARNING: (use): `remove!' imported from both (remove) and (srfi srfi-1)
Backtrace:
In module/ice-9/boot-9.scm:
170: 9 [catch #t #<catch-closure 86525a0> ...]
In unknown file:
?: 8 [catch-closure]
In module/ice-9/boot-9.scm:
62: 7 [call-with-prompt prompt0 ...]
In module/ice-9/eval.scm:
389: 6 [eval # #]
In module/ice-9/boot-9.scm:
1864: 5 [save-module-excursion #<procedure 8660b88 at module/ice-9/boot-9.scm:1878:3 ()>]
1172: 4 [load "./run.scm" #f]
In unknown file:
?: 3 [load-compiled/vm "/home/janneke/.cache/guile/ccache/2.0-0.T-LE-4/home/janneke/vc/schikkers-list/remove/run.scm.go"]
?: 2 [remove! #<<cls> 8b36380>]
In module/ice-9/boot-9.scm:
115: 1 [#<procedure 85c64d8 at module/ice-9/boot-9.scm:110:6 (thrown-k . args)> wrong-number-of-args ...]
In unknown file:
?: 0 [catch-closure wrong-number-of-args #f ...]
ERROR: In procedure catch-closure:
ERROR: Wrong number of arguments to #<procedure remove! (_ _)>
[1]14:59:12 janneke@vuurvlieg:~/vc/schikkers-list/remove
$
I haven't found the fix or workaround other than renaming the method to
`xremove!'.
Greetings,
Jan.
[-- Attachment #2: remove.tar.gz --]
[-- Type: application/x-compressed-tar, Size: 472 bytes --]
next reply other threads:[~2011-02-02 14:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 14:02 Jan Nieuwenhuizen [this message]
2011-02-11 17:48 ` implicitly using existing function as generic fails in 1.9 Andy Wingo
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=1296655370.19670.270.camel@vuurvlieg \
--to=janneke-list@xs4all.nl \
--cc=guile-devel@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).