Version française
Home     About     Download     Resources     Contact us    
Browse thread
Strings
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Rajchenbach-Teller <David.Teller@e...>
Subject: Re: [Caml-list] Strings

On Fri, 2009-04-03 at 23:44 +0200, Goswin von Brederlow wrote:
> It wouldn't be too hard to change the string module to allow for both
> mutable and immutable strings:

[...]

Done in Batteries.

# "foo";;   (*OCaml base string*)
- : string = "foo"
# ro"foo";;(*Read-only string*)
- : [ `Read ] Batteries.String.Cap.t = ro"foo"

Cheers,
 David