On Dec 25, 12:45 am, Razvan Rotaru <razvan.rot...@gmail.com> 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 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"? Probably you need to rethink
some things to get a design that doesn't require something so magical,
but eval is always available to you if you have some reason to believe
you require magic.

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to