From: Kevin Forchione (lysseus at gmail.com) Date: Tue Feb 25 01:23:18 EST 2014 |
|
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
Posted on the users mailing list. |
|