user> (def test-array (make-array (. Boolean TYPE) 100))
#'user/test-array
user> (aget test-array 0)
false
user> (= (aget test-array 0) false)
true
user> (if (aget test-array 0) 'true-value 'false-value)
true-value

Same issue with when, and when-not as well. IOW, (aget some-boolean-
array some-index) is treated as returning true even if the actual
return value of aget is false.



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

Reply via email to