
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.45 KB | hits: 8 | expires: Never
How to set a dynamic var in another namespace
(def ^:dynamic lobos.migration/*migrations-namespace* 'gb.install.migrations)
(binding [lobos.migration/*migrations-namespace* 'gb.install.migrations]
;; binding is in effect here in the body of the binding form
)
(set! lobos.migration/*migrations-namespace* 'gb.install.migrations)
(alter-var-root #'lobos.migration/*migrations-namespace*
(constantly 'gb.install.migrations))