aaa ok sorry... proxy-super is a no-no in this case...I think at this point my best bet is to write a macro that will expand into a gen-class skeleton form...there is no other way I'm afraid...the proxy approach would be so elegant if it worked!

Jim


On 15/04/13 22:17, Meikel Brandmeyer (kotarak) wrote:


Am Montag, 15. April 2013 23:03:56 UTC+2 schrieb Jim foo.bar:

    On 15/04/13 21:37, Meikel Brandmeyer (kotarak) wrote:
    >
    > (proxy [YourClass BarInterface] []
    >   (bar [x-or-y]
    >     (if (instance? InterfaceY x-or-y)
    >       (override x-or-y)
    >       (proxy-super x-or-y))))

    I'm sorry I forgot...what is 'override' above? what fn is this? I
    cannot
    find docs...


It is just a placeholder for the override logic since you wrote that in case of an InterfaceY you want to override the method. You would provide override.

Meikel

--
--
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
---
You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
--
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
--- You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to