On Apr 2, 10:30 pm, icemaze <icem...@gmail.com> wrote: > I'm writing a macro that defines a symbol through let, but I also > needs to unbind (unlet?) it, so that further uses of that symbol throw > an exception. > > I hoped I could use symbol-macrolet, but local symbols are protected > from expansion > > Thanks!
Is there any reason you can't expand to something like: (do (let [my-symbol ...] ;; use my-symbol) ;; do something with my-symbol out-of-scope) where you also can't use gen-syms to prevent accidental re-use? >From where I'm standing, if the answer to that question truly is "yes", my gut reaction is that the real problem is not in your inability to find a solution to the question you are posing. -- 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