[Top][All Lists]

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

`-' and zero arguments

From: Martin Grabmueller
Subject: `-' and zero arguments
Date: Sat, 05 May 2001 16:40:56 +0200

Hello list,

I think that `-' and `/' should issue wrong-number-args errors instead
of the following.

 guile> (-)
 <unnamed port>:1:1: In procedure - in expression (-):
 <unnamed port>:1:1: Wrong type argument in position 1: #<undefined>
 ABORT: (wrong-type-arg)

 Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
 guile> (/)
 <unnamed port>:2:1: In procedure / in expression (/):
 <unnamed port>:2:1: Wrong type argument in position 1: #<undefined>
 ABORT: (wrong-type-arg)

I am not sure how to fix this, because of the generic function
dispatch stuff.  Should there be a dispatch for a wrong number of
arguments too, or just a call to SCM_WRONG_NUM_ARGS?


reply via email to

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