Re: ?: create static inner Java class with constructor argument

2010-04-14 Thread alux
Thank you verec, I hadn't been aware of this. Kind regards, alux On 13 Apr., 00:08, verec wrote: > You may also want to browse this thread: > > http://groups.google.com/group/clojure/browse_frm/thread/a80e07675663... -- You received this message because you are subscribed to the Google Groups

Re: ?: create static inner Java class with constructor argument

2010-04-12 Thread verec
You may also want to browse this thread: http://groups.google.com/group/clojure/browse_frm/thread/a80e0767566357e5/224909f792464f6d -- 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 tha

Re: create static inner Java class with constructor argument

2010-04-12 Thread alux
Oh, thats fine. Now I can even reduce my (Class/forName "javax.sound.sampled.SourceDataLine") to just SourceDataLine I like shortening code (especially if it stays readable). Thank you. alux On 12 Apr., 14:41, Michael Wood wrote: > On 12 April 2010 13:54, alux wrote: > > > Aaaah! > > > Hel

Re: create static inner Java class with constructor argument

2010-04-12 Thread Michael Wood
On 12 April 2010 13:54, alux wrote: > Aaaah! > > Hello Kevin, right, thank you! I had even seen this once before, but > forgot it ;-) I wouldn't have bothered replying if Gmail hadn't put this in a separate thread :) Oh well. Perhaps my slightly more explicit answer will help someone else in fu

Re: ?: create static inner Java class with constructor argument

2010-04-12 Thread Remco van 't Veer
It's: javax.sound.sampled.Line$Info alux writes: > Hello, > > sorry, I'm a bit slow today. I try to create an instance of a Java > class I want to use, and am just confused. > > The Java code is > > import javax.sound.sampled.*; > > ... > > Line.Info li = new Line.Info(Object.class); > > My two

Re: ?: create static inner Java class with constructor argument

2010-04-12 Thread Michael Wood
On 12 April 2010 13:21, alux wrote: > Hello, > > sorry, I'm a bit slow today. I try to create an instance of a Java > class I want to use, and am just confused. > > The Java code is > > import javax.sound.sampled.*; > > ... > > Line.Info li = new Line.Info(Object.class); > > My two (wrong) trials

Re: create static inner Java class with constructor argument

2010-04-12 Thread alux
Aaaah! Hello Kevin, right, thank you! I had even seen this once before, but forgot it ;-) Regards, alux On 12 Apr., 13:34, "Kevin" wrote: > > import javax.sound.sampled.*; > > > ... > > > Line.Info li = new Line.Info(Object.class); > > > My two (wrong) trials are: > > > (def li (new javax.soun

RE: create static inner Java class with constructor argument

2010-04-12 Thread Kevin
> > import javax.sound.sampled.*; > > ... > > Line.Info li = new Line.Info(Object.class); > > My two (wrong) trials are: > > (def li (new javax.sound.sampled.Line/Info (.getClass (Object. ; gives Unable to resolve classname: javax.sound.sampled.Line/Info ; [Thrown class java.lang.IllegalAr

?: create static inner Java class with constructor argument

2010-04-12 Thread alux
Hello, sorry, I'm a bit slow today. I try to create an instance of a Java class I want to use, and am just confused. The Java code is import javax.sound.sampled.*; ... Line.Info li = new Line.Info(Object.class); My two (wrong) trials are: (def li (new javax.sound.sampled.Line/Info (.getClass