From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr 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 30C6D82098 for ; Mon, 5 Aug 2013 19:38:33 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dra-news@metastack.com) identity=pra; client-ip=81.103.221.52; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible Received-SPF: Neutral (mail2-smtp-roc.national.inria.fr: domain of dra-news@metastack.com does not assert whether or not 81.103.221.52 is permitted sender) identity=mailfrom; client-ip=81.103.221.52; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mtaout04-winn.ispmail.ntl.com) identity=helo; client-ip=81.103.221.52; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@mtaout04-winn.ispmail.ntl.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhQCAJXi/1FRZ900nGdsb2JhbABbgkIjVrcJiDyBIRYOAQEBAQEICxIUKIIlAQV5EAIBCAQ7BzIUEQIEDgWIEQMItS6QGQeDGXQDmQqTPA X-IPAS-Result: AhQCAJXi/1FRZ900nGdsb2JhbABbgkIjVrcJiDyBIRYOAQEBAQEICxIUKIIlAQV5EAIBCAQ7BzIUEQIEDgWIEQMItS6QGQeDGXQDmQqTPA X-IronPort-AV: E=Sophos;i="4.89,819,1367964000"; d="scan'208,217";a="28561355" Received: from mtaout04-winn.ispmail.ntl.com ([81.103.221.52]) by mail2-smtp-roc.national.inria.fr with ESMTP; 05 Aug 2013 19:38:32 +0200 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout04-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20130805173831.JBMP22777.mtaout04-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Mon, 5 Aug 2013 18:38:31 +0100 Received: from romulus.metastack.com ([81.98.252.242]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20130805173831.YKRU21648.aamtaout04-winn.ispmail.ntl.com@romulus.metastack.com>; Mon, 5 Aug 2013 18:38:31 +0100 Received: from remus.metastack.local (remus.metastack.com [172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id r75HcSFU030301 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 5 Aug 2013 18:38:28 +0100 Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%10]) with mapi id 14.03.0123.003; Mon, 5 Aug 2013 18:38:28 +0100 From: David Allsopp To: "r.3@libertysurf.fr" CC: "caml-list@inria.fr" Thread-Topic: [Caml-list] character syntax error '^M' Thread-Index: AQHOkgIXzdQp2CFLNUqQ0nOssQheTZmG4Squ Date: Mon, 5 Aug 2013 17:38:27 +0000 Message-ID: References: ,<851017912.242111224.1375724069423.JavaMail.root@zimbra27-e5.priv.proxad.net> In-Reply-To: <851017912.242111224.1375724069423.JavaMail.root@zimbra27-e5.priv.proxad.net> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_F0CFD34B4A2E4A58A3C3257ECAE6376Emetastackcom_" MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 172.16.0.20 X-Cloudmark-Analysis: v=1.1 cv=AUhbpHVS+xhHrj9wLCYAQoYnFLYUZdbP8UM0GmH2jwk= c=1 sm=0 a=orLt7dbH6nAA:10 a=cTs9vV391PwA:10 a=xqWC_Br6kY4A:10 a=ZOzjf2MOAAAA:8 a=siOh2WsfiJWLIlfKvBMA:9 a=CjuIK1q_8ugA:10 a=aT1-9OCzH6wA:10 a=MvQqkgb9Eqfuu6_o:21 a=XZr-TiIevh7uVi9l:21 a=n43ntM8PoILrv4mB7LcA:9 a=_W_S_7VecoQA:10 a=DwbcXUdqoO3259Ph:21 a=Z7mRHom3bhpOm4Hf:21 a=SWGcMIQahOJColkj:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: Re: [Caml-list] character syntax error '^M' --_000_F0CFD34B4A2E4A58A3C3257ECAE6376Emetastackcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Use \r or \x0d? http://caml.inria.fr/pub/docs/manual-ocaml/lex.html David On 5 Aug 2013, at 18:34, "r.3@libertysurf.fr" > wrote: Dear list, I got a new error with trunk version of ocaml. I have in a module a code that appears like that in emacs (which is used to= convert files from dos to unix) : String.get s (String.length s -1) =3D '^M' The thing is that '^M' is actually the return character of windows (RET) This works with ocaml 4.00, but now, with trunk version of ocaml, it tells = me this is a "syntax error". How shall I do ? what is supposed to be inside= the ' ' ? The emacs command "describe-char" gives me this unicode : 0x0D Best regards, William --_000_F0CFD34B4A2E4A58A3C3257ECAE6376Emetastackcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable


David

On 5 Aug 2013, at 18:34, "r.3@li= bertysurf.fr" <r.3@libert= ysurf.fr> wrote:

Dear list,

I got a new error with trunk version of ocaml.

I have in a module a code that appears like that in emacs (which is = used to convert files from dos to unix) :
String.get s (String.length s -1) =3D '^M'

The thing is that '^M' is actually the return character of windows (RET)

This works with ocaml 4.00, but now, with trunk version of ocaml, it tells = me this is a "syntax error". How shall I do ? what is supposed to= be inside the ' ' ?
The emacs command "describe-char" gives me this unicode : 0x0D


Best regards,
William
--_000_F0CFD34B4A2E4A58A3C3257ECAE6376Emetastackcom_--