guile-user
[Top][All Lists]
Advanced

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

Re: Description of `program-sources' and accessors


From: Andy Wingo
Subject: Re: Description of `program-sources' and accessors
Date: Sat, 19 Apr 2014 13:43:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi,

On Sat 19 Apr 2014 12:07, "Diogo F. S. Ramos" <address@hidden> writes:

> Is there a place which describes the meaning of each of element of
> `program-sources' accessors?
>
> For example:
>
>   (source:addr (program-sources every)) => (0 "srfi/srfi-1.scm" 810 . 0)
>
> What does each element of the improper list mean?
>
> Also for `source:file', `source:line' and `source:column'.  The first
> two are also improper lists, but the last is a list of improper lists.

Note that this is an interface that is very specific to Guile 2.0's
VM, and it's gnarly in many ways.  However :)  What program-sources
returns is a list of sources.  Therefore source:addr should be called on
the elements of program-sources, not on the list as a whole.

Unfortunately sources are represented in this interface as improper
lists -- source:addr is just car.  So it works on the list as a whole;
hence the confusion.  Perhaps now that this confusion is resolved, the
text in the manual will make more sense.

Regards,

Andy
-- 
http://wingolog.org/



reply via email to

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