On Jun 12, 4:58 pm, Chouser <chou...@gmail.com> wrote: > > So it looks like when the compiler expands defonce, it actually > > evaluates a def right then and there, rather than the def only being > > evaluated when the expansion of the defonce macro is evaluated. > > Yes, the var is interned in the namespace at compile time. > This is true of all macros that expand to 'def', not just > 'defonce'. That's one of the reasons that using 'def' other > than at the top level is suspect.
And that, in turn, is reason why I avoided defonce in preference to .hasRoot. :) --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---