On Sat 28 Jan 2012 20:47, Mark H Weaver <m...@netris.org> writes: > Andy Wingo <wi...@pobox.com> writes: > >> On Sat 28 Jan 2012 17:58, Bruce Korb <bruce.k...@gmail.com> writes: >> >>>> Bruce Korb <bruce.k...@gmail.com> writes: >>>> > I need to be able to locate a guile scheme expression in my ASCII >>>> > text input and hand it off to Guile, telling it the file name and >>>> > line number and column number of where I found the string. >>>> >>>> I agree that we should add a function or two to handle this more >>>> conveniently. Let's talk about it after 2.0.4 has been released, and >>>> hopefully we can get it into 2.0.5. >>> >>> Maybe less cumbersome than scm_c_eval_string_from_file_line ;) >> >> Didn't we settle on eval-string, with the #:file and #:line kwargs? See >> eval-string in the manual. > > I guess the code to use that from C would look something like this:
It can look a little better, if you don't consider columns: http://lists.gnu.org/archive/html/guile-devel/2011-03/msg00048.html See the end of the mail. Cheers, Andy -- http://wingolog.org/