On Sun, Apr 28, 2013 at 5:46 AM, AtKaaZ <atk...@gmail.com> wrote: > => (defn abc [] 3) > #'ants/abc > > => (loop [a 1] > (when (= 1 a) (recur (abc)))) > NO_SOURCE_FILE:2 recur arg for primitive local: a is not matching > primitive, had: Object, needed: long > Auto-boxing loop arg: a > nil >
The compiler isn't telling you it will need to box your recur arg into a long, but that it will be boxing your initial loop arg into an Object. Think of the message as "Maybe you intended `a` to be a primitive local, but since you passed `recur` a who-knows-what, it won't be." -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.