I think what you actually want is:
(defn get-id 
in your code, you're trying to call #'session/get directly and bind it
Hope this helps,
On Mon, Apr 30, 2012 at 11:39 AM, Travis Smith <tra...@legomaster.net> wrote:
> What does 'java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be
> cast to clojure.lang.IDeref' mean. I'm getting this a lot and I want to
> understand it better, make it easier for me to avoid this. Most of the time
> I just end up adjusting my def/defn's around until it works. This is hardly
> (this is all on clojure 1.3.0)
> An example...
> (ns app-admin.models.current-user
> (def get-id
> (defn set-user! [user]
> Give me an exception for get-id
> ClassCastException clojure.lang.Var$Unbound cannot be cast to
> So set-user! binds correctly, but get-id doesn't seem to...
> => (get-id)
> Then I check it...
> => (meta #'get-id)
> So it's there, the fn is bound; I'm not exactly sure what's going on and nor
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.