chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] compiler error fixup


From: Peter Keller
Subject: Re: [Chicken-users] compiler error fixup
Date: Mon, 2 Sep 2002 09:04:10 -0500
User-agent: Mutt/1.2i

On Mon, Sep 02, 2002 at 09:18:20AM +0200, Felix wrote:
> Peter Keller wrote:
> > Hello,
> > 
> > So, I was writing some code and got this:
> > 
> > Linux black > ./fastarg test.fa
> > Error: (length) bad argument type  10
> > writing stack-trace...
> > last traced call: address@hidden
> > Linux black > 
> > 
> > Now, I happen to know where this call happened and why it broke, but it
> > struck me that the above error didn't return any line number information or
> > which file had the problem. Do you think this could get fixed?
> 
> There definitely should be a reference to the offending source-file.
> Escepially in a situation where many dynamically loaded files
> are loaded, it is helpful to know where the error occurred.

Cool.

> I'm not sure what you mean with the line-number: the "address@hidden" message
> above tells it: it is (should be) line 29. Macro-expansion can
> sometimes slightly change the locaton, though: the code that is
> generated by the expansion (the code "inside" the macro-def)
> will have the same line-number as the "top-level" macro expression.

Heh. I thought the @29 was some sort of recursion depth or something.
Maybe the error should look like this:

Error: <file:line> The function '(length)' had a bad argument type '10'
last traced call: <file:line> 'fasymbol'

The @29 was really confusing.

Thanks.

-pete






reply via email to

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