chicken-users
[Top][All Lists]
Advanced

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

Re : [Chicken-users] multiple define from a macro


From: minh thu
Subject: Re : [Chicken-users] multiple define from a macro
Date: Mon, 26 Mar 2007 14:12:12 +0200

2007/3/26, Arto Bendiken <address@hidden>:
On 3/26/07, minh thu <address@hidden> wrote:
>
> (define-macro (csg:make-mode-handler mode)
> ...
>     `(define ,press '())
>     `(define ,release '())
>     `(define (,name+) (print "hello+"))
>     `(define (,name-) (print "hello-"))))
>
> Only the later `(define ...) is produced. How can I have the three
> other ones produced too ?

Wrap the `define' forms in a `begin', like so:

  `(begin
     (define ,press '())
     (define ,release '())
     ...)

Thank you very much!
thu




reply via email to

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