[Top][All Lists]

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

Re: Backtraces in Guile 2.0

From: Andy Wingo
Subject: Re: Backtraces in Guile 2.0
Date: Tue, 22 Feb 2011 20:13:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Tue 22 Feb 2011 18:53, Mike Gran <address@hidden> writes:

> So, the specific line on which the error occurred will always read
> "in unknown file" because source data is a property of procedures.  And,
> when procedure A tail-calls procedure B, the backtrace may only
> display the information of the procedure A.  Right?


> Thus, if I understand correctly, the closest I can get to getting source
> info for this trivial case would be to change the script to
>   (symbol->string "HELLO")
>   #t


> Adding a #t so it can't be tail-called.  Then I get
> In unknown file:
>    ?: 2 [load-compiled/vm 
> "/home/Mike/.cache/guile/ccache/2.0-LE-4-2.0/home/Mike/tmp.scm.go"]
> In /home/Mike/tmp.scm:
>    1: 1 [#<procedure 13fa550 ()>]
> In unknown file:
>    ?: 0 [symbol->string "STRING"]
> ERROR: In procedure symbol->string:

Is this what you want?  It seems right to me...


reply via email to

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