> (...)
> 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)
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