unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* [r6rs] with-syntax should have a body like let
@ 2011-03-02 22:00 Marco Maggi
  2011-03-31 11:33 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Maggi @ 2011-03-02 22:00 UTC (permalink / raw)
  To: guile-user

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [r6rs] with-syntax should have a body like let
  2011-03-02 22:00 [r6rs] with-syntax should have a body like let Marco Maggi
@ 2011-03-31 11:33 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2011-03-31 11:33 UTC (permalink / raw)
  To: Marco Maggi; +Cc: guile-user

On Wed 02 Mar 2011 23:00, Marco Maggi <marco.maggi-ipsu@poste.it> writes:

> it is my understanding that WITH-SYNTAX has a body like let.

Indeed.  Fixed in git, thanks.

In the future, note that bug reports are better sent to
bug-guile@gnu.org.

Regards,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-31 11:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 22:00 [r6rs] with-syntax should have a body like let Marco Maggi
2011-03-31 11:33 ` Andy Wingo

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).