emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13509: closed (wrong "definition in expression con


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13509: closed (wrong "definition in expression context" in R6RS mode)
Date: Thu, 31 Jan 2013 06:12:02 +0000

Your message dated Thu, 31 Jan 2013 01:10:07 -0500
with message-id <address@hidden>
and subject line Re: bug#13509: wrong "definition in expression context" in 
R6RS mode
has caused the debbugs.gnu.org bug report #13509,
regarding wrong "definition in expression context" in R6RS mode
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13509: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13509
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: wrong "definition in expression context" in R6RS mode Date: Sun, 20 Jan 2013 20:37:03 +0100
On my i686-pc-linux-gnu running:

    $ guile --version
    guile (GNU Guile) 2.1.0.1329-d7cb7

built from the head of the "master" branch, this program:

    #!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:

    ;;; compiling /home/marco/var/tmp/proof.sps
    ;;; WARNING: compilation of /home/marco/var/tmp/proof.sps failed:
    ;;; ERROR: Syntax error:
    ;;; /home/marco/var/tmp/proof.sps:12:2:   definition  in
    ;;; expression context, where definitions a re not allowed, in form (define 
beta #t)
    ice-9/boot-9.scm:718:27: In procedure map:
    ice-9/boot-9.scm:718:27: Syntax error:
    /home/marco/var/tmp/proof.sps:12:2: definition in expression context, where 
definitions are not allowed, in form (define beta #t)
-- 
Marco Maggi



--- End Message ---
--- Begin Message --- Subject: Re: bug#13509: wrong "definition in expression context" in R6RS mode Date: Thu, 31 Jan 2013 01:10:07 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Marco Maggi <address@hidden> 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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]