Laurent PETIT a écrit : > When I call test-create-fn with 4000000000, the elapsed time falls > down to zero : I suspect it does nothing, and in the same time it does > not seem to correctly crash by throwing an exception ? > > I've tested the correct handling of that high numeric values by > clojure, it sounds ok : > user=> (println 4000000000) > 4000000000 > nil > user=> (dec 4000000000) > 3999999999 > > > Can someone explain me what happens here ? dotimes assumes its bound to be an int. user=> (int 4000000000) -294967296
0 being greater than -294967296 the iteration exits immediatly. -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.blogspot.com/ (en) --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---