Hi, On Sat 19 Apr 2014 12:07, "Diogo F. S. Ramos" <[email protected]> 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/
