From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Diogo F. S. Ramos" Newsgroups: gmane.lisp.guile.user Subject: Re: Description of `program-sources' and accessors Date: Sun, 20 Apr 2014 15:09:18 -0300 Message-ID: <877g6j50vl.fsf@nebulosa.milkyway> References: <87oazx4oqd.fsf@nebulosa.milkyway> <87bnvxo878.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398017397 16570 80.91.229.3 (20 Apr 2014 18:09:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2014 18:09:57 +0000 (UTC) Cc: guile-user@gnu.org To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Apr 20 20:09:50 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WbwBW-0004Tz-55 for guile-user@m.gmane.org; Sun, 20 Apr 2014 20:09:46 +0200 Original-Received: from localhost ([::1]:46322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbwBV-0001qg-L5 for guile-user@m.gmane.org; Sun, 20 Apr 2014 14:09:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbwBH-0001qY-Ic for guile-user@gnu.org; Sun, 20 Apr 2014 14:09:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbwBB-0000FL-E6 for guile-user@gnu.org; Sun, 20 Apr 2014 14:09:31 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:32811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbwBB-0000FH-84 for guile-user@gnu.org; Sun, 20 Apr 2014 14:09:25 -0400 Original-Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id CBF454E3FC; Sun, 20 Apr 2014 11:09:23 -0700 (PDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dfsr@fruiteater.riseup.net) with ESMTPSA id 405D2706 In-Reply-To: <87bnvxo878.fsf@pobox.com> (Andy Wingo's message of "Sat, 19 Apr 2014 13:43:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Virus-Scanned: clamav-milter 0.98.1 at mx1 X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 198.252.153.129 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11211 Archived-At: >> Is there a place which describes the meaning of each of element of >> `program-sources' accessors? > > 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. Oh, I see. Thank you. So, what does "sources" mean? For what I can see, each one correspond to a line in a definition. I can't also figure out what a `source:addr' is, but I'm guessing it's for the VM. I'm using this interface to know where an object has been defined. By your note, I get the impression that this might not be a good idea. Am I getting it right and if so, do you have a suggestion to achieve what I'm trying to do using another method?