On Mon, Dec 5, 2011 at 5:29 PM, Linus Ericsson <oscarlinuserics...@gmail.com
> wrote:

> David and Stu to the rescue. Of course that's the way to do it.


Not sure if this is what you want, but Clojure 1.3 introduced ^:const.
 This lets you store a primitive constant value:

  (def ^:const hash -3750763034362895579)

Then you can use hash anywhere as if you'd inlined the value.  hash will be
stored as a primitive, and will work with unchecked-multiply.

-- 
Dave

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