guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Source properties on arbitrary non-immediate values


From: Neil Jerram
Subject: Re: [PATCH] Source properties on arbitrary non-immediate values
Date: Sat, 15 Oct 2005 18:59:38 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> My original motivation was to implement "position recording" in
> `guile-reader'.  In order to be compatible with the built-in reader, I
> wanted to use the same mechanism as the one it uses.  When I initially
> implemented it (not knowing about the restriction), I wrote something
> like:
>
>   if (SCM_NIMP (expr))
>     {
>       scm_set_source_property_x (expr, scm_sym_line, line);
>       ...
>     }
>
> And I was surprised to see that this wouldn't work on any kind of
> non-immediate.  [...]  Right, source properties are not "one size
> fits all" and should only be used by the reader.  Perhaps we should
> add a line about this in the manual?

Yes, I'll look into doing that.

     Neil





reply via email to

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