I'm no expert on the new way of doing things in 1.3, but I found that if you 
remove the ^long type hint on the return value from item-check, it compiles 
without errors or warnings.

Andy

On Mar 13, 2011, at 10:36 AM, Nick Zbinden wrote:

> Hallo all,
> 
> I have been looking at the binary-trees in the language shotout.
> http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=clojure&id=5
> 
> I want to make it work with the primitiv support in clojure 1.3 but I
> cant get it to work. Maybe its my misunderstanding in the new primitiv
> support.
> 
> Here is my code:
> https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/clojure/src/clojure/binarytrees_me.clj
> (I removed some stuff like unchecked operations for now I can add that
> stuff again later. Its easier to understand that way)
> 
> this is basiclly the original:
> https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/clojure/src/clojure/binarytrees.clj
> 
> I always get the error:
> error: java.lang.IllegalArgumentException: Unable to resolve
> classname: clojure.core$long@1539d49, compiling:(/home/nick/alltech/
> Allgemein_Programming/IDPA-Programmiersprachen-Benchmarken/clojure/src/
> clojure/binarytrees_me.clj:32)
> 
> Do I maybe need to use thes operations like +'?
> 
> Any other performance improving tipps would be nice too.
> 
> 
> -- 
> 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