Re: FYI: OCaml 4.06 in Fedora 28 will change default mutability of strings

2017-11-23 Thread Richard W.M. Jones
On Mon, Nov 06, 2017 at 02:22:35PM +, Richard W.M. Jones wrote: > Since forever ... > > # string_of_bool true;; > - : string = "true" > # String.blit "urgh" 0 (string_of_bool true) 0 4;; > - : unit = () > # string_of_bool true;; > - : string = "urgh" > > Since OCaml 4.02 (in

FYI: OCaml 4.06 in Fedora 28 will change default mutability of strings

2017-11-06 Thread Richard W.M. Jones
Since forever ... # string_of_bool true;; - : string = "true" # String.blit "urgh" 0 (string_of_bool true) 0 4;; - : unit = () # string_of_bool true;; - : string = "urgh" Since OCaml 4.02 (in 2014) it has been possible to opt in to ‘-safe-string’ to make strings immutable. You have