Re: making instances of a parameterised class...efficiently...

2010-02-01 Thread Jules
Guys, Thanks for your answers. I'll give both of these solutions a try out this week and get back to the list with results and thoughts. Thanks again for your help. Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: making instances of a parameterised class...efficiently...

2010-01-27 Thread Chouser
On Wed, Jan 27, 2010 at 8:52 AM, Jules wrote: > > I have all the ctor arg types in my hand as well and went on to think > that I could actually write a > > (defn make-ctor [class types] ...) > > which would return me : > >  (fn [#^type1 arg1 #^type2 arg2...#^typen argn]...) > > then pass this off

Re: making instances of a parameterised class...efficiently...

2010-01-27 Thread Konrad Hinsen
On 27 Jan 2010, at 14:52, Jules wrote: I have a requirement to pull unknown Java classes out of an Object, construct instances of them and plug these back into other Objects...efficiently... I had a similar problem recently and Rich proposed the following solution, which works fine for me:

making instances of a parameterised class...efficiently...

2010-01-27 Thread Jules
Guys, I'm just starting out with Clojure - so be gentle - but I am a seasoned Java developer with some LISP in the background... I'm adding Clojure to a highly concurrent and metadata driven project that I am working on, to use as a DSL - specifically a query language I have a requirement t