Foo$Bar is the name of the class, and $ is a valid character in a Java class name. Foo$Bar is not a clojure symbol.
On Mon, Apr 30, 2012 at 12:19 PM, Philip Potter <philip.g.pot...@gmail.com>wrote: > Note that, even though this works, $ is not a valid character in a > clojure symbol. > > See > http://groups.google.com/group/clojure/browse_thread/thread/5af5d892f2e84212/0c5dc6b6a1578f07?#0c5dc6b6a1578f07 > > and http://clojure.org/reader > > So: is the behaviour discussed intentional? If so, should $ be made > explicitly valid in symbols? > > Phil > > On 30 April 2012 16:59, Jay Fields <j...@jayfields.com> wrote: > > That's correct. You'll want to make sure you (:import Foo$Bar) also. > > > > more > > info: > http://blog.jayfields.com/2011/01/clojure-using-java-inner-classes.html > > > > Cheers, Jay > > > > On Mon, Apr 30, 2012 at 11:44 AM, Tassilo Horn <tass...@member.fsf.org> > > wrote: > >> > >> nick rothwell <n...@cassiel.com> writes: > >> > >> > I'm faced with the following in some legacy code: > >> > > >> > public interface Foo { interface Bar { ... String BAZ = "baz"; ... }} > >> > > >> > Is there any way of accessing Foo.Bar.BAZ in the Clojure world? I've > >> > tried various combinations of proxying and reifying with no joy. > >> > >> Not tested, but I think it's Foo$Bar/BAZ. > >> > >> Bye, > >> Tassilo > >> > >> -- > >> 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 > > -- > 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