Re: Java interop: inner class

2012-01-09 Thread Alan Bram
On 1/9/12, Lars Nilsson wrote: > (foo$bar. (foo.)) Thanks! That works. Actually this is exactly what I had guessed. But when I tried it, it wasn't working for me. But it turns out my problem was something unrelated, and the error message I got wasn't enough to get me to see where I was wrong.

Re: Java interop: inner class

2012-01-09 Thread Lars Nilsson
On Mon, Jan 9, 2012 at 8:46 PM, Alan wrote: > How do you instantiate a (non-static) inner class? Something like the following? foo.java: public class foo { public class bar { public bar() { System.out.println("Made a bar"); } } } and (import 'foo)

Re: Java interop: inner class

2012-01-09 Thread Alan Malloy
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" (J

Java interop: inner class

2012-01-09 Thread Alan
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 clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post.