On May 20, 4:47 am, Per <[email protected]> wrote:
> ;; The macro
> (defmacro def-fields [name  tgs]
>   `(defstruct ~name ~@(map #(symbol (str ":" %)) tgs))
> )

If you replace the call to 'symbol' with a call to 'keyword', it works
(I think this is what you intended).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to