[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Bünzli_Daniel <daniel.buenzli@e...> |
| Subject: | Re: [Caml-list] confusion about mutable strings |
Each invocation of foo does not allocate a new string for str, "ffff" is a constant string allocated once and you are updating this constant. let str = String.copy "ffff" will solve your problem. Best, Daniel