Just a follow up, Chris House pointed me out on twitter that the correct would be to use (meta *agent*) instead of (:meta *agent*).
On Dec 17, 1:35 pm, Carlos Moscoso <moscoso....@gmail.com> wrote: > Hi, > > I'm trying to access from within a action function, and with no > success, the metadata associated with agent. > > My code: > user> (def agt (agent nil :meta {"some" "data"})) > user> (defn action [_] (:meta *agent*)) > user> (await (send agt action)) > > Wich results in: > user> @agt > nil > > Instead of: > user> @agt > {"some" "data"} > > The same happens with a validation function. I'm wondering if this is > the expected behavior. > > Thanks. -- 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