From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Unbound variables used within a form Date: Sat, 13 Oct 2012 14:54:48 +0200 Message-ID: <87r4p2r0pz.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1350149462 13456 80.91.229.3 (13 Oct 2012 17:31:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 17:31:02 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 13 19:31:09 2012 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 1TN5YK-0003u6-MI for guile-user@m.gmane.org; Sat, 13 Oct 2012 19:31:08 +0200 Original-Received: from localhost ([::1]:33890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN5YE-0003q0-2H for guile-user@m.gmane.org; Sat, 13 Oct 2012 13:31:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN1F9-0006SN-Jx for guile-user@gnu.org; Sat, 13 Oct 2012 08:55:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN1F8-0005de-Ii for guile-user@gnu.org; Sat, 13 Oct 2012 08:55:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN1F8-0005YE-By for guile-user@gnu.org; Sat, 13 Oct 2012 08:55:02 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TN1FA-0003AS-Jw for guile-user@gnu.org; Sat, 13 Oct 2012 14:55:04 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Oct 2012 14:55:04 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Oct 2012 14:55:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?iso-8859-1?Q?Vend=E9miaire?= an 221 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:vaaAm4ahhT5sQoe6G7yMG3XoIFM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-Mailman-Approved-At: Sat, 13 Oct 2012 13:30:58 -0400 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:9619 Archived-At: Hi! Panicz Maciej Godek skribis: > It takes a scheme program and returns the list > of all variables (symbols) that are used but > unbound within that form. Just to complete Mark’s response, you might want to look at the ‘unbound-variable’ analysis in the compiler, namely in language/tree-il/analyze.scm (it implements the compiler warning for uses of possibly unbound variable.) Thanks, Ludo’.