what about code using 1.2, and clojure-contrib, how to make transition.
--
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 wi
I'm not sure deftype handles annotations on *parameters* of
constructors. I'd be pleasantly surprised to be shown it does though.
I think Stuart's workaround should work, though I think I might have
to make my Java adaptor extend my Clojure gen-class rather than the
other way around.
On Sep 23, 3
Deftype handles annotations and all the other features of java
classes. Have a look here for an example:
http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fmy-clojure.blogspot.com%2F2011%2F06%2Fweb-clojure.html
On Sep 23, 10:11 pm, Warren
Excellent, thanks! And thanks for sharing the taxi from Strange Loop
to STL tuesday night! :)
On Sep 23, 2:07 pm, Stuart Sierra wrote:
> Hi Warren,
>
> Clojure doesn't try to be support every possible feature of Java when
> generating Java classes, it just provides enough for interop purposes.
Hi Warren,
Clojure doesn't try to be support every possible feature of Java when
generating Java classes, it just provides enough for interop purposes.
Annotations have always been a weak area. I don't know if annotations on
constructor arguments in `gen-class` are supported, but my suspicion i
Ideally when generating a java class from Clojure for interop
purposes, we should be able to generate any annotations that the
equivalent java code could generate. Thus if a java class can
annotate a constructor parameter, then gen-class and defrecord should
be able to do that too. (I'm trying to