las3r icon indicating copy to clipboard operation
las3r copied to clipboard

Strange behaviour of dot operator with String's indexOf method.

Open yonatan opened this issue 14 years ago • 0 comments

-> (let [s "abcd" 
         index-of (. s indexOf)]
     (index-of "c"))
5

-> (let [s "abcd" 
         index-of (get-property s "indexOf")]
     (index-of "c"))
2

-> (let [s "abcd"] 
     (= (. s indexOf) (get-property s "indexOf")))
false

yonatan avatar Nov 09 '10 14:11 yonatan