David Greenberg <dsg123456...@gmail.com> writes:

> I can easily generate a map from signatures to implementations, but I
> need to generate the class with all the overloads.
>
> Is there any way to do this? Should I resign myself to writing out a
> .java file, and compiling that?

In my experience just writing a stub Java class for this sort of
situation is the simplest solution.  I've found that `gen-class` works
well for interop when needing to extend an abstract base class or
similar scenarios.  But when the need is less to interop with the JVM
than specifically with Java, it is far easier to wire from Java into
Clojure than vice versa.

-Marshall

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