Eric Schulte schulte.e...@gmail.com writes:
Hi,
The following case statement
#+begin_src clojure
(defn buggy-case [n]
(case (int n)
0 :null
1 :load
0x7000 :loproc))
#+end_src
throws the following error
No
This is on the release roadmap for 1.3:
http://dev.clojure.org/jira/browse/CLJ-426.
Volunteers welcome!
Stu
Hi,
The following case statement
#+begin_src clojure
(defn buggy-case [n]
(case (int n)
0 :null
1 :load
0x7000
Hi,
The following case statement
#+begin_src clojure
(defn buggy-case [n]
(case (int n)
0 :null
1 :load
0x7000 :loproc))
#+end_src
throws the following error
No distinct mapping found
[Thrown class
It looks like a problem in clojure.core/min-hash to me. case depends
on min-hash to generate ahead-of-time hashes of all the test clauses,
and while I can't easily follow what's going on, it seems to be trying
to find a shift/mask combination that is...somehow related to the
hashes of the test