On Wed, Jan 7, 2009 at 3:18 PM, Greg Harman <ghar...@gmail.com> wrote:
>
> Do you have an example of gen-interface + proxy working together?

You're calling my bluff, eh?  Well, no I don't yet.  I'm doing ugly
hacky things instead, to avoid the compile step.  But since you've
thrown down the gauntlet, to mix some metaphors...

I think the problem with your example is trying to work with classes
or namespaces without any package names.  This sometimes works a bit,
but it's not really supported.  So I put your example code into a file
named "my_ns/compiletest.clj", and changed it to:

(ns my-ns.compiletest)
(gen-interface :name my_ns.ICompileTest)
(proxy [java.io.InputStream] []) ; Just to make sure proxy works by
itself (line 3)
(proxy [my_ns.ICompileTest] []) ; Line 4

Now compiling works fine for me:

user=> (compile 'my-ns.compiletest)
my-ns.compiletest

--Chouser

--~--~---------~--~----~------------~-------~--~----~
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
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