feedback on modified clojure.test.are macro

2010-02-22 Thread Dan Becker
(Moderators ... resending this, sorry if it's already in the queue) Hi, I'd like to be able to use the *are* testing macro like this: (are [input] (= input (myfun input)) *my-input-data*) But this doesn't work; the args are expected to be listed on-by-one, not in a list: (defmacro are [ar

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

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