Hello Herwig,

I checked the patch you linked to in your original post, and it doesn't seem
that type hinting for native arrays of Objects is supported, that is the [L
type. Native arrays of native types work quite well.

(definterface Name (^"[S" method [])) ;;returns array of shorts
(def p (proxy [Name] []
    (method [] (short-array [(short 10) (short 1)])))) ;;method returns
short[2]
(.method p) ;; returns #<short[] [S@1911540>

Cheers,
Ivan.



On 21 October 2011 23:02, Herwig Hochleitner <hhochleit...@gmail.com> wrote:

> Another annotation bug:
>
> Annotations on gen-class in an ns form, like (ns foo (:gen-class
> ^{Singleton {}} foo.ClassName)) don't seem to work.
>
> --
> __________________________________________________________________
> Herwig Hochleitner
>
> --
> 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 with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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 with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to