This, however, does not work:

(ns org.tomko.konkordans.analysis
  (:import
    (org.tomko.konkordans NestedStatics)))

(def foo NestedStatics$LevelOne$LevelTwo/NO)

user=> (load-file "/Users/mark/IdeaProjects/Konkordans/src/org/tomko/
konkordans/analysis.clj")
java.lang.Exception: No such namespace: NestedStatics$LevelOne
$LevelTwo (analysis.clj:5)

On Dec 28, 5:48 pm, Mark Tomko <mjt0...@gmail.com> wrote:
> This appears to work:
>
> user=> (str org.tomko.konkordans.NestedStatics$LevelOne)
> "class org.tomko.konkordans.NestedStatics$LevelOne"
>
> Is this depending on a detail of implementation?  It feels funny to
> me, but perhaps it's the best way to do it.
>
> On Dec 28, 5:42 pm, David Brown <cloj...@davidb.org> wrote:
>
>
>
> > On Mon, Dec 28, 2009 at 02:32:48PM -0800, Mark Tomko wrote:
> > >user=> (str.org.tomko.konkordans.NestedStatics/LevelOne)
>
> > Does
>
> >     str.org.tomko.konkordans.NestedStatics$LevelOne/ONE
>
> > Work?
>
> > You can always look in the class output directory that the Java
> > compiler generates, and see the resulting class name that it creates
> > (just change the slashes in the path into dots).
>
> > David

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