bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #18504] Cannot generate (define-simple-class) using synt


From: Margus Freudenthal
Subject: [Bug-kawa] [bug #18504] Cannot generate (define-simple-class) using syntax-case macros
Date: Mon, 11 Dec 2006 09:02:17 +0000
User-agent: Opera/9.02 (X11; Linux i686; U; en)

URL:
  <http://savannah.gnu.org/bugs/?18504>

                 Summary: Cannot generate (define-simple-class) using
syntax-case macros
                 Project: Kawa
            Submitted by: margus
            Submitted on: Monday 12/11/2006 at 09:02
                Category: Code generation
                Severity: 3 - Normal
              Item Group: Compile-time exception
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When I try to generate class inside macro, I get exception.

Macro:

(define-syntax aa
  (lambda (x)
    (syntax-case x ()
      ((_ cl arg argtype)
       #`(define-simple-class cl ()
           (arg type: argtype))))))

#|kawa:7|# (aa MyClass myparam <String>)
<stdin>:7:1: invalid type spec (must be "type" or 'type or <type>)

When I use <String> instead of argtype, it compiles.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?18504>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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