On Tue 22 Feb 2011 18:53, Mike Gran <[email protected]> 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?
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 Yep. > 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... Andy -- http://wingolog.org/
