On Friday 03 April 2009 21:41:26 Harrison, John R wrote: > | I can agree with you on this argument, but a question still remains: > | > | why should you ever do things like: > | > # s.[0] <- 'a';; > > The point is that it might not be your own code that does it, but a > function written by someone else to which you innocently pass a string > argument. You may think you're writing purely functional code...
Why? This data structure is a mutable array of bytes and should be treated as such. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?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