From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id A0835BC68 for ; Mon, 13 Nov 2006 18:45:19 +0100 (CET) Received: from ext.lri.fr (ext.lri.fr [129.175.15.4]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kADHjJ26002222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 13 Nov 2006 18:45:19 +0100 Received: from smtp.lri.fr (serveur3-5 [129.175.3.5]) by ext.lri.fr (Postfix) with ESMTP id 0D03320214C; Mon, 13 Nov 2006 18:45:19 +0100 (CET) Received: from serveur9-10.lri.fr (serveur9-10 [129.175.9.10]) by smtp.lri.fr (Postfix) with ESMTP id 48808CED98; Mon, 13 Nov 2006 18:45:18 +0100 (CET) Received: from filliatr by serveur9-10.lri.fr with local (Exim 3.36 #1 (Debian)) id 1Gjfry-00051J-00; Mon, 13 Nov 2006 18:45:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17752.44846.608583.347799@serveur9-10.lri.fr> Date: Mon, 13 Nov 2006 18:45:18 +0100 To: "Till Varoquaux" Cc: "Keisuke Nakano" , caml-list@inria.fr Subject: Re: [Caml-list] Simple idea for making a function infix In-Reply-To: <9d3ec8300611130819q7e13d5f4mb84b9fb1a2ac74ae@mail.gmail.com> References: <1EB857FD-F706-419C-9181-D45DEA88B756@mist.i.u-tokyo.ac.jp> <9d3ec8300611130819q7e13d5f4mb84b9fb1a2ac74ae@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 21.4.1 From: Jean-Christophe Filliatre X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at discorde with ID 4558AF2F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; infix:01 filliatre:01 filliatr:01 lri:01 infix:01 redefining:01 ocaml:01 asmcomp:01 compiler:01 caml-list:01 writes:01 let:03 guess:04 problem:05 definition:07 Till Varoquaux writes: > I don't really understand the point of the */ operator i your > definition. I guess it is only aesthetic. > > We use the following two infix operators. > > let ( /* ) x y = y x > > > It's fuy ecause I've cosiderig the same problem recetly ad > came dow to this approach ( I'm redefining(@)... oe c ) There is actually an instance of this infix operator in the ocaml sources (in asmcomp/asmgen.ml for instance). It is used to compose the various passes of the compiler. -- Jean-Christophe