Or, you can go the opposite way and write a macro that expands into the appropriate ns form. This will work if the information you need from *db-adapter* is there by macroexpansion time.
A macro that does a similar job to ns, but adds conditional features to the ns "DSL", can wrap and generalize what Chouser suggests and will work if *db-adapter*'s information isn't available until runtime. The macro would allow something like what you originally tried to do, with your-ns replacing ns, and expand in that case into code like Chouser suggested. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---