The syntax for this is atrocious in Java and the mechanism is in general rarely useful; I wouldn't be surprised if there's no non-hacky way to do this in Clojure. fooInstance.new Bar() is the construct you're talking about, right? My best guess would be that you just use the inner class's "real" (JVM-level) name, and pass it an instance of the outer class as its first argument. Something like (new Foo$Bar foo- instance), perhaps, but frankly that's a guess.
On Jan 9, 5:46 pm, Alan <[email protected]> wrote: > How do you instantiate a (non-static) inner class? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
