GNU bug report logs -
#75860
Somewhat confusing exception message with append
Previous Next
To reply to this bug, email your comments to 75860 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#75860
; Package
guile
.
(Sun, 26 Jan 2025 13:05:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tomas Nordin <tomasn <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Sun, 26 Jan 2025 13:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello Guile!
As expected, the following raises an exception:
(append 'a '(b) '()) =>
ice-9/boot-9.scm:1676:22: In procedure raise-exception:
In procedure append: Wrong type argument in position 1 (expecting empty list): a
And so does this:
(append '(a) 'b '()) =>
ice-9/boot-9.scm:1676:22: In procedure raise-exception:
In procedure append: Wrong type argument in position 1 (expecting empty list): b
Note that the a-thing is the first and the b-thing the second argument
in both calls. 'a is at fault in the first and 'b is at fault in the
second call.
But, in both cases the faulty argument is reported to be in position 1.
I would expect maybe position 2 to be complained about from the second
call.
Also, I wonder why we are "(expecting empty list)" in place of the
non-list things?
I made the above observations, if it's a bug or not, I don't know.
(version) => "3.0.9.140-d8df3-dirty"
Have a great Sunday
--
Tomas
This bug report was last modified 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.