From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id D4EDA7F02D for ; Wed, 22 Oct 2014 11:14:39 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.04,768,1406584800"; d="scan'208";a="102352335" Received: from pl-59055.rocqadm.inria.fr ([128.93.59.55]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 22 Oct 2014 11:14:39 +0200 Received: from shindere by pl-59055.rocqadm.inria.fr with local (Exim 4.76) (envelope-from ) id 1Xgs07-0004yd-NR for caml-list@inria.fr; Wed, 22 Oct 2014 11:14:39 +0200 Date: Wed, 22 Oct 2014 11:14:39 +0200 From: =?utf-8?Q?S=C3=A9bastien?= Hinderer To: caml-list@inria.fr Message-ID: <20141022091439.GA27538@pl-59055.rocqadm.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [Caml-list] String.create 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.