guile-user
[Top][All Lists]
Advanced

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

Re: Line numbers for scm_c_primitive_load() errors


From: Robert Gill
Subject: Re: Line numbers for scm_c_primitive_load() errors
Date: Sat, 31 Mar 2018 16:40:05 -0700
User-agent: Mutt/1.7.2 (2016-11-26)

On Sat, Mar 31, 2018 at 09:09:32AM -0700, Mike Gran wrote:
> Yeah.  Guile only attaches line numbers to some of the locations in a
> file, like 'define'; many of the inner expressions have no location
> attached.
> 
> One strategy is to evaluate a file one expression at a time, and then
> hold onto the last expression that had locations attached to it.  When an
> error occurs, the last expression that had locations attached is
> probably above or next to the expression causing the error.
> 
> Consider the attached program
> 
> Hope this helps
> 
> -Mike Gran

Thank you! I think that should work for what I'm  doing.



reply via email to

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