|
From: | Arto Bendiken |
Subject: | Re: [Chicken-users] multiple define from a macro |
Date: | Mon, 26 Mar 2007 13:30:56 +0200 |
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 '()) ...) -- Arto Bendiken | http://bendiken.net/
[Prev in Thread] | Current Thread | [Next in Thread] |