On Mon, Dec 15, 2008 at 4:52 PM, Randall R Schulz <rsch...@sonic.net> wrote: > > Hi, > > I'm wondering whether it's a good idea to create a defsomething -style > macro that establishes multiple root bindings? In other one, a macro > that expands to multiple (def ...) forms?
Well that sounds quite like declare: user=> (macroexpand-1 '(declare fred bob margaret)) (do (def fred) (def bob) (def margaret)) > The first thing I noticed when I did this is that (barring further > machinations within the macro) it evaluates to only the last Var that > was defined. Indeed: user=> (declare fred bob margaret) #'user/margaret -- Michael Wood <esiot...@gmail.com> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---