We're encountering some strange behaviour with the instance? function. The first two examples are expected behaviour:
(instance? Double 42.0) > => true > (instance? 99 42.0) > ClassCastException java.lang.Long cannot be cast to java.lang.Class but the next is not: (let [Double 99] (instance? Double 42.0)) > => true We expected that when the symbol Double is bound to a value, then that symbol would be evaluated to its value before being passed to a function. In this case it seems that the call to instance? is being inlined. Am I missing something? Is this a bug? We are using Clojure 1.5.1. Thanks in advance. Simon -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.