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


View this message in rfc822 format

From: Tomas Nordin <tomasn <at> posteo.net>
To: Rob Browning <rlb <at> defaultvalue.org>, 75860 <at> debbugs.gnu.org
Subject: bug#75860: Somewhat confusing exception message with append
Date: Wed, 19 Mar 2025 23:09:56 +0000
Hello Rob

Rob Browning <rlb <at> defaultvalue.org> writes:

> Tomas Nordin <tomasn <at> posteo.net> writes:
>
>> 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.
>
> ...and it appears to be correct when run via -c or a script.

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).




This bug report was last modified 87 days ago.

Previous Next


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