[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.
Regards,
'martin
- scm_wrong_num_args, Dirk Herrmann, 2001/03/06
- Re: scm_wrong_num_args, Marius Vollmer, 2001/03/13
- Re: scm_wrong_num_args,
Martin Grabmueller <=
- Re: scm_wrong_num_args, Dirk Herrmann, 2001/03/14
- Re: scm_wrong_num_args, Dirk Herrmann, 2001/03/15
- Re: scm_wrong_num_args, Marius Vollmer, 2001/03/24
- Re: scm_wrong_num_args, Dirk Herrmann, 2001/03/25
- Re: scm_wrong_num_args, Dale P. Smith, 2001/03/27
- Re: scm_wrong_num_args, Marius Vollmer, 2001/03/30
- Re: scm_wrong_num_args, Dale P. Smith, 2001/03/27
- Re: scm_wrong_num_args, Gary Houston, 2001/03/28
- Re: scm_wrong_num_args, Dirk Herrmann, 2001/03/28
- Re: scm_wrong_num_args, Marius Vollmer, 2001/03/30