On Mon, Jan 31, 2011 at 3:10 AM, Andy Fingerhut
<andy.finger...@gmail.com> wrote:
> I wanted to compare some similar code for 1.2 versus 1.3 alpha4, and I'm
> having trouble finding something I want that compiles with 1.3 alpha4.

...

>      (loop [i (int 0)
>             offset (int offset)
>             temp (int 0)]

As far as I am aware, 1.3 doesn't do local primitives like this
anymore. Just using the literal 0 for i and temp will make them
primitive longs. As for offset, (long offset) might work. On the other
hand, Java wants ints rather than longs for things like array indices
and I don't know if auto-demotion will happen (in Java you'd get an
error about not being allowed to do an implicit narrowing conversion,
and you'd have to explicitly cast long to int).

It may be worth a try, anyway.

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