I’m trying to code a macro that will define a variable number of identifiers. 
What I want is something like:

        (ref foo bar baz ...) 

and assign them an initial value of #<void>. The kludge I’ve come up with 
works, but there must be a better way to do this:

(define-syntax-rule (ref name ...)
  (define-values (name …) (values ((λ (name) (void)) #f) ...)))

>(ref foo bar baz)
>foo
#f

Thanks!

-Kevin
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to