Re: Implementing a class in clojure, calling it from java

2010-02-28 Thread Michał Marczyk
On 28 February 2010 16:24, Dan Becker wrote: > Ah, thank you! I guess that makes sense. But it doesn't seem to be > documented directly anywhere, though the examples at > http://clojure.org/compilation > do show the need to do this. Try Meikel Brandmeyer's post "gen-class – how it works and how

Re: Implementing a class in clojure, calling it from java

2010-02-28 Thread Dan Becker
Ah, thank you! I guess that makes sense. But it doesn't seem to be documented directly anywhere, though the examples at http://clojure.org/compilation do show the need to do this. Dan On Feb 28, 7:10 am, Adrian Cuthbertson wrote: > Hi Dan, you need to include an arg for "this" in -fooMeth, i.e

Re: Implementing a class in clojure, calling it from java

2010-02-28 Thread Adrian Cuthbertson
Hi Dan, you need to include an arg for "this" in -fooMeth, i.e (defn -fooMeth [this] "fooMeth") or (defn -fooMeth [_] "fooMeth") - Rgds, Adrian On Sun, Feb 28, 2010 at 12:06 AM, Dan Becker wrote: > Hi, > > I'm trying to write a java class in clojure, and then call it from > java. But I keep get

Implementing a class in clojure, calling it from java

2010-02-28 Thread Dan Becker
Hi, I'm trying to write a java class in clojure, and then call it from java. But I keep getting IllegalArgumentExceptions. file hello.clj: (ns hello (:gen-class :methods [ [fooMeth [] String]]) ) (defn -fooMeth [] "fooMeth") file TestIt2.java: public class TestIt2 { public st