guile-devel
[Top][All Lists]
Advanced

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

Re: unknown location: definition in expression context in subform optnam


From: Andy Wingo
Subject: Re: unknown location: definition in expression context in subform optname-from of "_^"
Date: Sat, 28 Jan 2012 23:58:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Sat 28 Jan 2012 20:47, Mark H Weaver <address@hidden> writes:

> Andy Wingo <address@hidden> writes:
>
>> On Sat 28 Jan 2012 17:58, Bruce Korb <address@hidden> writes:
>>
>>>> Bruce Korb <address@hidden> 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/



reply via email to

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