Creates and interns or locates a global var with the name of symbol and a namespace of the value of the current namespace (*ns*). "
I can not figure out how to get the value of the symbol, created with def construct in Clojure and, for example, print it with System.out.println in Java.
I tried everything, nothing works! :(
Any help would be greatly appreciated.
Sincerely,
Ru
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com.
user> (def a)
#'user/a
user> (defn ab [] 1)
#'user/ab
user> (.deref (clojure.lang.RT/var "user" "a"))
2
user> (.deref (clojure.lang.RT/var "user" "ab"))
#function[user/ab]
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/ff4cb2f0-b121-4c54-b060-a1e64fbb0e4an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/33e8dc71-7199-4f14-86d6-97b549b3b6e0n%40googlegroups.com.