From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Maggi Newsgroups: gmane.lisp.guile.user Subject: [r6rs] with-syntax should have a body like let Date: Wed, 02 Mar 2011 23:00:01 +0100 Message-ID: <877hch2nfi.fsf@rapitore.luna> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299103110 9709 80.91.229.12 (2 Mar 2011 21:58:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 21:58:30 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 02 22:58:26 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Puu3r-0004OE-Je for guile-user@m.gmane.org; Wed, 02 Mar 2011 22:58:23 +0100 Original-Received: from localhost ([127.0.0.1]:50693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puu3r-0007Iy-2m for guile-user@m.gmane.org; Wed, 02 Mar 2011 16:58:23 -0500 Original-Received: from [140.186.70.92] (port=34501 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puu3f-0007H1-55 for guile-user@gnu.org; Wed, 02 Mar 2011 16:58:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puu3d-0006cB-VM for guile-user@gnu.org; Wed, 02 Mar 2011 16:58:11 -0500 Original-Received: from relay-pt1.poste.it ([62.241.4.164]:44776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Puu3d-0006bn-Q8 for guile-user@gnu.org; Wed, 02 Mar 2011 16:58:09 -0500 Original-Received: from rapitore.luna (93.147.77.239) by relay-pt1.poste.it (8.5.121.01) (authenticated as marco.maggi-ipsu@poste.it) id 4D6D88D100023D19 for guile-user@gnu.org; Wed, 2 Mar 2011 22:58:07 +0100 Original-Sender: marco.maggi-ipsu@poste.it X-Loop: marco@maggi.it.invalid X-Mailer: GNU Emacs Original-Lines: 25 X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 62.241.4.164 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8485 Archived-At: The following program: #!r6rs (import (rnrs)) (with-syntax ((a 1)) (define b 1) (write 2)) fails with: ;;; note: source file /home/marco/var/tmp/proof.sps ;;; newer than compiled /home/marco/.cache/guile/ccache/2.0-LE-4-2.0/home/marco/var/tmp/proof.sps.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/marco/var/tmp/proof.sps ;;; WARNING: compilation of /home/marco/var/tmp/proof.sps failed: ;;; key syntax-error, throw_args (#f "definition in expression context" #f 1 b) module/ice-9/psyntax.scm:896:30: In procedure dobody: module/ice-9/psyntax.scm:896:30: Syntax error: unknown location: definition in expression context in subform b of 1 but it is my understanding that WITH-SYNTAX has a body like let. -- Marco Maggi