Syntax for proxy methods?

2009-10-01 Thread timc
Can someone please advise me if this is possible: // --- IX.java --- interface IX { void doit(); void doit(int n); } ; --- x.clj --- (def prx (proxy [IX][] (doit ([] (doseq [x someSeq] (doit x)) ([y] (print y When I tried something of this form, it looks like the call of

Re: Syntax for proxy methods?

2009-10-01 Thread Jarkko Oranen
On Oct 1, 9:18 pm, timc timgcl...@gmail.com wrote: snip (def prx (proxy [IX][]   (doit     ([] (doseq [x someSeq] (doit x))     ([y] (print y When I tried something of this form, it looks like the call of the 1- arg function from the 0-arg function can't be resolved. Thanks in

Re: Syntax for proxy methods?

2009-10-01 Thread timc
No, its a proxy for an interface. On Oct 1, 7:22 pm, Jarkko Oranen chous...@gmail.com wrote: On Oct 1, 9:18 pm, timc timgcl...@gmail.com wrote: snip (def prx (proxy [IX][]   (doit     ([] (doseq [x someSeq] (doit x))     ([y] (print y When I tried something of this form, it

Re: Syntax for proxy methods?

2009-10-01 Thread timc
Oops, I spoke too hastily -- thank you Jarkko. On Oct 1, 8:38 pm, timc timgcl...@gmail.com wrote: No, its a proxy for an interface. On Oct 1, 7:22 pm, Jarkko Oranen chous...@gmail.com wrote: On Oct 1, 9:18 pm, timc timgcl...@gmail.com wrote: snip (def prx (proxy [IX][]   (doit