It looks like Clojure 1.4 does the same thing so it's probably been hiding for 
a while.  The fully qualified var works.

user=> (def foo1. 2)
#'user/foo1.
user=> foo1.
CompilerException java.lang.ClassNotFoundException: foo1., 
compiling:(NO_SOURCE_PATH:0) 
user=> user/foo1.
2

On Dec 22, 2012, at 3:34 PM, Borkdude <michielbork...@gmail.com> wrote:

> I was playing around with 1.5-RC1 and stumbled unto this behavior:
> 
> https://www.refheap.com/paste/7817
> 
> Clojure lets me define a var which name contains a dot, but I can't 
> dereference it by name (because it is seen as a classname with a method or 
> field). Clojure shouldn't let me let define it in the first place I think?
> 
> (I was trying to get a list of all vars added to clojure 1.5, the fact that I 
> have used the value 2 in the refheap isn't the point).
> 
> -- 
> 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

-- 
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

Reply via email to