[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme error message
From: |
David Kastrup |
Subject: |
Re: Scheme error message |
Date: |
Thu, 21 Apr 2016 21:27:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> Hi all,
>
> I understand what this error message means:
>
> |guile> (1 2 3) standard input:98:1: In expression (1 2 3): standard
> input:98:1: Wrong type to apply: 1 ABORT: (misc-error) |
>
> But I'm at a loss with that:
>
> |guile> (1 . 2) standard input:82:1: In expression (1 . 2): standard
> input:82:1: Wrong number of arguments to 1 ABORT: (wrong-number-of-args) |
>
>
> ||
> Please, I don't want to know how to do it correctly (which I do) but
> what Scheme "thinks" in the second case: What kind of "1" is it that
> expects a "number of arguments"?
"Wrong number of arguments" is apparently Guile's phrasing for "bad
argument list". Guile apparently never gets as far as checking whether
1 is callable.
--
David Kastrup