lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheme error message


From: Urs Liska
Subject: Re: Scheme error message
Date: Thu, 21 Apr 2016 21:42:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0


Am 21.04.2016 um 21:27 schrieb David Kastrup:
> 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.
>

Hm, strange. I can see your point but don't understand what really
happens. Makes a hard time explaining things you don't have a clue about ...

Interestingly Scheme *does* make a difference:

guile> (random . 2)
standard input:121:1: While evaluating arguments to random in expression
(random . 2):
standard input:121:1: Wrong number of arguments to #<primitive-procedure
random>
ABORT: (wrong-number-of-args)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]