From: Marco Maggi <marco.maggi-ipsu@poste.it>
To: guile-user@gnu.org
Subject: [r6rs] with-syntax should have a body like let
Date: Wed, 02 Mar 2011 23:00:01 +0100 [thread overview]
Message-ID: <877hch2nfi.fsf@rapitore.luna> (raw)
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
next reply other threads:[~2011-03-02 22:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 22:00 Marco Maggi [this message]
2011-03-31 11:33 ` [r6rs] with-syntax should have a body like let Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hch2nfi.fsf@rapitore.luna \
--to=marco.maggi-ipsu@poste.it \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).