On May 20, 4:47 am, Per <nondual...@gmail.com> 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 clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---