caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] String.create
@ 2014-10-22  9:14 Sébastien Hinderer
  2014-10-22  9:26 ` av1474
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sébastien Hinderer @ 2014-10-22  9:14 UTC (permalink / raw)
  To: caml-list

Dear all,

OCaml 4.02.0 prints the following warning:
Warning 3: deprecated: String.create

The code that triggers this warning looks like this:

let buf = String.create size in
really_input ic buf 0 size;

Is there a way to fix the code so that it does not trigger this warning
but still compiles also with older versions of Caml, up to 3.10?

Many thanks!
Sébastien.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-22  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-22  9:14 [Caml-list] String.create Sébastien Hinderer
2014-10-22  9:26 ` av1474
2014-10-22  9:31   ` David Allsopp
2014-10-22  9:27 ` David Allsopp
2014-10-22  9:29 ` Sylvain Pogodalla

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