English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-04-04 (10:05)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Strings
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 

Dr Jon Harrop, Flying Frog Consultancy Ltd.