Re: Dynamic gen-class

2010-06-27 Thread Meikel Brandmeyer
Hi, On Jun 28, 5:38 am, Brian Hurt wrote: > This is actually something that has been bugging me for a while.  Most of > the time this isn't a problem (being unable to generate classes in the repl, > basically), except in one case: exceptions.  It'd be nice to be able to > define classes that inh

Re: Dynamic gen-class

2010-06-27 Thread Brian Hurt
On Sun, Jun 27, 2010 at 4:54 PM, rob levy wrote: > HI Michael, > > If I understand correctly, the proxy function might be what you are looking > for. I think gen-class can only be used with AOT compilation. > > -Rob > > This is actually something that has been bugging me for a while. Most of th

Re: Dynamic gen-class

2010-06-27 Thread rob levy
HI Michael, If I understand correctly, the proxy function might be what you are looking for. I think gen-class can only be used with AOT compilation. -Rob On Sun, Jun 27, 2010 at 8:19 AM, Michael Jaaka wrote: > Hi, > > Is there any way to generate class in runtime and then use it? > How far I

Dynamic gen-class

2010-06-27 Thread Michael Jaaka
Hi, Is there any way to generate class in runtime and then use it? How far I can only generate interfaces. This works: (do (gen-interface :name test.commons.Me :methods [[ me [ String ] void ]]) (def z (reify test.commons.Me (me [t z] (println "hello wor