GNU bug report logs - #75860
Somewhat confusing exception message with append

Previous Next

Package: guile;

Reported by: Tomas Nordin <tomasn <at> posteo.net>

Date: Sun, 26 Jan 2025 13:05:01 UTC

Severity: normal

Full log


Message #14 received at 75860 <at> debbugs.gnu.org (full text, mbox):

From: Rob Browning <rlb <at> defaultvalue.org>
To: Tomas Nordin <tomasn <at> posteo.net>, 75860 <at> debbugs.gnu.org
Subject: Re: bug#75860: Somewhat confusing exception message with append
Date: Wed, 19 Mar 2025 21:41:37 -0500
Tomas Nordin <tomasn <at> posteo.net> writes:

> Do you mean like
>
>     $ guile -c "(append '(a) 'b '())"
>     [...]
>     In procedure append: Wrong type argument in position 2 (expecting empty list): b
>
> Here the position is reported as 2 (as expected I think). Was that what
> you also observed? (Still confusing for me that we are expecting an
> empty list).

Right, I see 1 in the repl and 2 via -c or a file.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4




This bug report was last modified 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.