On Thu, Jan 26, 2012 at 2:28 AM, Tassilo Horn <tass...@member.fsf.org> wrote:
> At least, it seems that (fn ^double [^double x] (+ x 0.5)) compiles to a
> class supporting primitive, unboxed calls.

Yes. That was my conclusion also. But apparently the only way to get
the compiler to emit such a call is by binding the fn to a global Var
with the appropriate hints and calling that.

Even a local var with both tag and arglists metadata doesn't work:

user=> (with-local-vars [a (fn ^double [^double x] (+ 0.5 x))]
(.setMeta a {:tag Double/TYPE :arglists [^double[^double 'x]]}) (pt (a
0.1)))
:object

Changing the call to (@a 0.1) has no effect.

-- 
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