Browse thread
Re: [Caml-list] Random results
- markus.kliegl@t...
[
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: | 2001-04-21 (04:28) |
From: | markus.kliegl@t... |
Subject: | Re: [Caml-list] Random results |
On Fri, 20 Apr 2001, David Brown wrote: > > Ocaml appears to only have one copy of each string. When you rot13 the > string, it overwrite the constant. This toggles. > > An easy fix is to copy the string before changing the characters: > > let rot13_str str = > let str = String.copy str in > for i ... Works perfectly, thanks! Markus Kliegl ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr