Re: Classes and Clojure reader (newbie questions)

2008-12-28 Thread TPJ
> (...) > This is perfectly possible, although not necessarily desirable. > > (ns com.example.MyClass >    (:gen-class >      :state state >      :init init >      :methods [[getMyIntField [] Integer] >                [setMyIntField [Integer] Void/TYPE]])) > > (defn -init >    [x] >    [[] (ref x)

Re: Classes and Clojure reader (newbie questions)

2008-12-28 Thread Meikel Brandmeyer
Hi, Am 28.12.2008 um 09:13 schrieb TPJ: So, it's impossible to use Clojure code to generate the following Java class: class MyClass { private int myIntField; int getMyIntField() { return myIntField; } void setMyIntField( int val ) { myIntField = val; } } This is perfectly possible, althou