On Sun, Jan 25, 2009 at 7:06 AM, Anand Patil
<anand.prabhakar.pa...@gmail.com> wrote:
>
> I'd like to repeat my request for an example of definline usage; I
> feel I've tried everything.

I looked into this yesterday, and it seems to me that definline has
been broken since SVN rev 1065.  I don't know why the usages of it in
core.clj don't cause errors at compile time, but they don't seem to
work quite right.

When used as a function, they work fine:

user=> (apply ints [(into-array Integer/TYPE [1 2 3])])
#<int[] [...@2f8b5a>

But when used as a macro, they return nil:

user=> (ints (into-array Integer/TYPE [1 2 3]))
nil

--Chouser

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