Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] Random results
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
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