From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id D181EBC3D for ; Sun, 7 Aug 2005 10:23:24 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j778NOn7000341 for ; Sun, 7 Aug 2005 10:23:24 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA30930 for ; Sun, 7 Aug 2005 10:23:23 +0200 (MET DST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j778NMgI026829 for ; Sun, 7 Aug 2005 10:23:23 +0200 Received: by rproxy.gmail.com with SMTP id a36so1023439rnf for ; Sun, 07 Aug 2005 01:23:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; b=OB13SIzhRT+dPE0mRnZ7UXJypGe7EFYfpcF7CDwGNvGgYU1WDd1xt5J1ZP6w4TGM12IvbbLatIRWPrwVUvJ5GEFaCIx40MP7NTuOF+17/gt+yZZxU6Zo0YRcf0BC6ngATXjup8cpBNNn/THqNF79IAkxEMYJQ32jj5yq8cOdjfI= Received: by 10.38.11.37 with SMTP id 37mr2097276rnk; Sun, 07 Aug 2005 01:23:22 -0700 (PDT) Received: from ?192.168.2.103? ([84.145.226.48]) by mx.gmail.com with ESMTP id i1sm5951791rne.2005.08.07.01.23.21; Sun, 07 Aug 2005 01:23:22 -0700 (PDT) In-Reply-To: <7B0AADBE-23D8-4C63-ABE7-75360C874E13@lrde.epita.fr> References: <7B0AADBE-23D8-4C63-ABE7-75360C874E13@lrde.epita.fr> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <720559a313c79c17cbd09fa18422244c@gmail.com> Content-Transfer-Encoding: quoted-printable Cc: caml-list@inria.fr From: Christian Lindig Subject: Re: [Caml-list] right-associating infix application operator camlp4 extension Date: Sun, 7 Aug 2005 10:23:21 +0200 To: =?ISO-8859-1?Q?Qu=F4c_Peyrot?= X-Mailer: Apple Mail (2.622) X-Miltered: at concorde with ID 42F5C4FC.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42F5C4FA.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lindig:01 lindig:01 caml-list:01 infix:01 haskell-like:01 ocaml:01 endline:01 define:01 define:01 int:01 string:03 let:03 extension:06 schrieb:08 operator:11 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Am 07.08.2005 um 01:03 schrieb Qu=F4c Peyrot: > Is there any existing camlp4 extensions to define a $ haskell-like=20 > operator? You don't need CamlP4 for this. You could define in OCaml: let (@@) f x =3D f x Now you can write: =09 print_endline @@ string_of_int x -- Christian=