Subject: Re: bug#13509: wrong "definition in expression context" in R6RS mode
From: Mark H Weaver <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Thu, 31 Jan 2013 01:10:07 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Marco Maggi <[email-masked]> writes:
>     #!r6rs
>     (import (rnrs))
>     (define (alpha)
>       (define-syntax define-special
>         (syntax-rules ()
>           ((_ ?who ?val)
>            (define ?who ?val))))
>       (define-special beta #t)
>       #f)
>     (alpha)
>
> should succeed, but instead it fails with:
>
[...]
>     ;;; /home/marco/var/tmp/proof.sps:12:2:   definition  in
>     ;;; expression context, where definitions a re not allowed, in form (define beta #t)

Fixed in ceb7f9cc126f50e0cc8956b80ac5d111580b23c8
(which is now in stable-2.0 but not yet in master)

Thanks for the report!

     Mark