[Top][All Lists]

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

Re: scm_wrong_num_args

From: Martin Grabmueller
Subject: Re: scm_wrong_num_args
Date: Wed, 14 Mar 2001 08:10:25 +0100

> From: Marius Vollmer <address@hidden>
> Date: 13 Mar 2001 18:34:26 +0100
> Dirk Herrmann <address@hidden> writes:
> > There are two reasons for this:  The first is, that currently the error
> > message is not too helpful:
> > 
> > guile> (make-string)   
> > <unnamed port>:3:1: In procedure make-string in expression (make-string):
> > <unnamed port>:3:1: Wrong number of arguments to #<primitive-procedure 
> > make-string>
> > ABORT: (wrong-number-of-args)

I think it is helpful.  It says that the procedure `make-string' was
called with a wrong number of arguments, and that the procedure call
was located at <unnamed port>:3:1.  That is all information necessary
to debug a program.

> Implementationally, yes, but conceptionally, I regard the argument
> checking to be part of the called function.  The evaluator should not
> enter the picture explicitely.  The caller of a function is not the
> evaluator but the function `one stack-frame up'.  If you want to find
> the caller, you should look at the backtrace, in my opinion.

IMO too.


reply via email to

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