On Nov 2, 11:40 am, Sergey Didenko <[email protected]> wrote:
> Seems like a bug:
>
> The following compiles:
>
> (let [[^Double x ^Double y] [0.1 0.2]] (+ x y))
>
> This does not:
>
> (let [[^double x ^double y] [0.1 0.2]] (+ x y))
>
> "Unable to resolve classname: double"
This is CLJ-852. Applying the patch posted there on top of current
master fixes the problem:
$ curl
http://dev.clojure.org/jira/secure/attachment/10398/CLJ-852-test.patch
| git am -
...
$ curl
http://dev.clojure.org/jira/secure/attachment/10401/CLJ-852-rfc-fix.patch
| git am -
...
$ mvn packge
...
$ java -jar target/clojure-1.4.0-master-SNAPSHOT.jar
Clojure 1.4.0-master-SNAPSHOT
(let [[^double x ^double y] [0.1 0.2]] (+ x y))
0.30000000000000004
// Ben
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en