On Wednesday 28 May 2008 09:02:52 David Allsopp wrote: > > The "correct" strategy seems to be used for string_of_float infinity: > > Well, it's just that string_of_bool can only return two possible values > where string_of_float must perform an allocation each time.
The current implementation of string_of_float happens to allocate in this case but that is not necessary. It could just as well special case these special values and return static strings. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs