Macro from list to class init

Denis Michiels <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
Hello,

I'm trying to build a macro to be able to do :

```
(define data (list (cons 'label "My button")
                   (cons 'stretchable-width #t)))

(my-macro button% data)
```

to be translated in  :

```
(new button% [label "My button"] [stretchable-width #t])
```

(I take gui example, and incomplete (like no frame) but it is to show my
goal)

Unfortunately, I didn't manage well macro in Racket...
Can someone help me, or have a hint how to manage this macro?

Thank you in advance,
Denis

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.