Hmm, well, it was a nice idea, but it fails, as the eval happens before
the load. Can't quite work out why this is true, but it is.
Far as I can tell, this requires Java level changes. Or I can provide
support in the package.
Shame.
Phil
Phillip Lord writes:
> Well, yes, but it always does i
Well, yes, but it always does it and needs modification of the source.
Anyway, I found a solution; requires usage of a private var,
unfortunately, but it does work.
(defn eval-after-load [library form]
(let [key
(keyword
(str "eval-after-load-" library))]
(add-watch
Doesn't simply putting some executable forms at the end of the namespace's
source code do that? e.g.
(ns foo
...)
(defn ...)
(def ...)
(defn ...)
...
(do-something!)
On Mon, Oct 28, 2013 at 1:05 PM, Phillip Lord
wrote:
>
> I want to add some additional configuration after I have loaded