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
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