Re: proxy with dynamic

2012-01-28 Thread Razvan Rotaru
Yes, it's more clear now. Thanks. -- 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. To unsubscribe fr

Re: proxy with dynamic

2011-12-25 Thread Meikel Brandmeyer
Hi, Am 25.12.2011 um 13:03 schrieb Razvan Rotaru: > I'm not sure I understand your question. The class is known, but it's > transfered as an instance of java.lang.Class. > I also don't quite understand your argument. Clojure creates classes > dynamically (e.g. deftype), so why not create a proxy

Re: proxy with dynamic

2011-12-25 Thread Razvan Rotaru
On Dec 25, 1:17 pm, Meikel Brandmeyer wrote: > Hi, > > Wiring to classes happens in the bytecode and hence have to be known at > compile time. You either have to use eval or refrain from doing things at > runtime. Is the class transferred into your program at runtime without > knowing it up-fro

Re: proxy with dynamic

2011-12-25 Thread Meikel Brandmeyer
Hi, Am 25.12.2011 um 11:46 schrieb Razvan Rotaru: > Macros work fine, but I want to try to have it as a function. Wiring to classes happens in the bytecode and hence have to be known at compile time. You either have to use eval or refrain from doing things at runtime. Is the class transferred

Re: proxy with dynamic

2011-12-25 Thread Razvan Rotaru
On Dec 25, 12:01 pm, Alan Malloy wrote: > > Presumably you just tried it and found it doesn't work, so I'm not > sure what more you're looking for here. How would you even fill in the > body of the proxy? "I don't know what class this is, but I know > exactly what methods I need to override"? Prob

Re: proxy with dynamic

2011-12-25 Thread Alan Malloy
On Dec 25, 12:45 am, Razvan Rotaru wrote: > Hi, > > Is it possible to give the class as value at runtime to proxy? > > (defn create-proxy [clazz] >     (proxy [clazz] )) > > I know this can be done with a macro, but my question is whether it > can be done as function. Presumably you just trie

proxy with dynamic

2011-12-25 Thread Razvan Rotaru
Hi, Is it possible to give the class as value at runtime to proxy? (defn create-proxy [clazz] (proxy [clazz] )) I know this can be done with a macro, but my question is whether it can be done as function. Thanks, Razvan -- You received this message because you are subscribed to the G