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 368447EE4B for ; Wed, 25 Sep 2013 08:43:47 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of tews@os.inf.tu-dresden.de) identity=pra; client-ip=141.76.48.99; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="tews@os.inf.tu-dresden.de"; x-sender="tews@os.inf.tu-dresden.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of tews@os.inf.tu-dresden.de) identity=mailfrom; client-ip=141.76.48.99; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="tews@os.inf.tu-dresden.de"; x-sender="tews@os.inf.tu-dresden.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@os.inf.tu-dresden.de) identity=helo; client-ip=141.76.48.99; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="tews@os.inf.tu-dresden.de"; x-sender="postmaster@os.inf.tu-dresden.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEAAIuFQlKNTDBjl2dsb2JhbABbgmaEVL0fgRwWDgEBAQEBCBYHPIImAQUjZgsaAgUhAgIPAQQoNIgHA6lCkjWBKY4vFoJSgTUDl3yVHQ X-IPAS-Result: AsEAAIuFQlKNTDBjl2dsb2JhbABbgmaEVL0fgRwWDgEBAQEBCBYHPIImAQUjZgsaAgUhAgIPAQQoNIgHA6lCkjWBKY4vFoJSgTUDl3yVHQ X-IronPort-AV: E=Sophos;i="4.90,976,1371074400"; d="scan'208";a="34222800" Received: from os.inf.tu-dresden.de ([141.76.48.99]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Sep 2013 08:43:45 +0200 Received: from [2002:8d4c:3001:48:222:68ff:fe19:71d] (helo=blau.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) id 1VOip8-0004Io-0a for caml-list@yquem.inria.fr; Wed, 25 Sep 2013 08:43:46 +0200 Received: from tews by blau.inf.tu-dresden.de with local (Exim 4.80) (envelope-from ) id 1VOip7-0000nR-8O for caml-list@yquem.inria.fr; Wed, 25 Sep 2013 08:43:45 +0200 From: Hendrik Tews To: caml-list@yquem.inria.fr References: <21057.62779.166955.488865@blau.inf.tu-dresden.de> <52427563.5090604@glondu.net> Date: Wed, 25 Sep 2013 08:43:44 +0200 In-Reply-To: <52427563.5090604@glondu.net> (=?utf-8?Q?=22St=C3=A9phane?= Glondu"'s message of "Wed, 25 Sep 2013 07:32:19 +0200") Message-ID: <6x4n99h04f.fsf@blau.inf.tu-dresden.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Enhanced OCaml Documentation 4.01 St=C3=A9phane Glondu writes: Le 24/09/2013 22:25, Hendrik Tews a =C3=A9crit : > [...] > the documentation approves what long-term OCaml hackers have been > using for years to improve their code. You can use an infix > symbol as for-loop-variable: >=20 > for (+) =3D ... to ... do ... done >=20 > will (mostly) work as (un)expected! Really? People actually do that? St=C3=A9phane, if you quote me, please don't erase the smilies, I use them rarely enough! The above was a joke, but I was really surprised to see that=20 for (+) =3D 1 to 5 do Printf.printf "%d\n" ((+) * 2) done actually works. I still wonder, if there is a useful application for this "feature". Bye, Hendrik