caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: markus.kliegl@t-online.de (markus.kliegl)
To: David Brown <caml-list@davidb.org>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Random results
Date: Sat, 21 Apr 2001 06:33:46 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.10.10104210632210.27678-100000@linux.magictux.net> (raw)
In-Reply-To: <20010420211305.A7171@opus.davidb.org>


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


       reply	other threads:[~2001-04-21  4:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010420211305.A7171@opus.davidb.org>
2001-04-21  4:33 ` markus.kliegl [this message]
2001-04-21  3:25 markus.kliegl
2001-04-21  4:31 ` Patrick M Doane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.10104210632210.27678-100000@linux.magictux.net \
    --to=markus.kliegl@t-online.de \
    --cc=caml-list@davidb.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).