From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q3QMarAZ010974 for ; Fri, 27 Apr 2012 00:36:53 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmUEAJPMmU/YSz5mcGdsb2JhbABFqEOJJyoBDAgOBxQDJIIAIgKBAwEHXRIBBQFXh2sLmgOCXgqeXo4ZgyUEiGONGoERjU89hCs X-IronPort-AV: E=Sophos;i="4.75,487,1330902000"; d="scan'208";a="141776415" Received: from gourmet7.spamgourmet.com (HELO gourmet8.spamgourmet.com) ([216.75.62.102]) by mail4-smtp-sop.national.inria.fr with ESMTP; 27 Apr 2012 00:36:48 +0200 Received: from spamgourmet by gourmet7.spamgourmet.com with local (Exim 4.69) (envelope-from ) id 1SNXIs-0000IC-L4 for caml-list@inria.fr; Thu, 26 Apr 2012 22:36:46 +0000 Received: from mail-pb0-f48.google.com ([209.85.160.48]) by gourmet7.spamgourmet.com with esmtp (Exim 4.69) (envelope-from ) id 1SNXIs-0000I2-FG for ; Thu, 26 Apr 2012 22:36:46 +0000 Received: by pbbjt11 with SMTP id jt11so290859pbb.7 for <>; Thu, 26 Apr 2012 15:36:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=16XVW7pC+Q9paJlI60TBCMvbtz01XmBmVfZCDT+J9A4=; b=HY0gRUd2gHQu88yTkpK66pXSLsCxYf4MXCXSP97GZpUkK6+/QjsAtsVnhijQWLkdfu OHb5Nif0vJ9coo9OYY7U0UNgViqvbsAZm4lnhcWi2GJzbKlbLdmGCadSfLiBXrLQs4fx gFGJdS5Jxt7qf8Iw832ZXUKyplWjkAUczBKa0O3FzvVDI9MN3MCaZgbCIzRKarF1yy06 hvQkLScSEx+MnAxBgSyZX1hkSEqwQFaHl4x0Erac4MWAPj6LrBMm4gjBec15FEgGWAqW 8zCeFhku4xMjRK/fAHMR5dm5IOC16NCvp9QzlMMF9mCpQA1N5lVyFILMqAidMhT1lcDN njQQ== MIME-Version: 1.0 Received: by 10.68.130.130 with SMTP id oe2mr18507393pbb.160.1335479806081; Thu, 26 Apr 2012 15:36:46 -0700 (PDT) Received: by 10.68.225.35 with HTTP; Thu, 26 Apr 2012 15:36:46 -0700 (PDT) X-Originating-IP: [173.167.122.54] Date: Thu, 26 Apr 2012 15:36:46 -0700 Message-ID: From: ocamllist.robertwork@spamgourmet.com To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=047d7b15ad97723bf404be9c9ff0 X-Gm-Message-State: ALoCoQkqM9R8D4ViD1qPDEl1992A+z9unNuc7yY6vxBBJCeMtd9IHVU3/VS5Ajxm0Oy13dmSCDnT X-Spamgourmet: X-Validation-by: ocamllist.robertwork@spamgourmet.com Subject: [Caml-list] using infix operators/functions in modules when not using "open" --047d7b15ad97723bf404be9c9ff0 Content-Type: text/plain; charset=ISO-8859-1 I'm a OCaml newbie. I don't understand how to use infix functions that are in modules when I don't want to use "open". I did discover http://xahlee.org/ocaml/functions.html which explains that an infix operator can be used as a prefix. So, this format: ((Module.(op)) "foo" "bar") does seem to work. But, intuitively, it seems like: "foo" Module.(op) "bar" would work -- it doesn't. Is there a way to keep the infix notation? Thanks. --047d7b15ad97723bf404be9c9ff0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm a OCaml newbie. =A0I don't understand how to use infix function= s that are in modules when I don't want to use "open".
I did discover=A0http://xahlee.org/ocaml/functions.html which explains that an inf= ix operator can be used as a prefix. =A0So, this format:

=A0 ((Module.(op)) "foo" "bar")

does seem to work. =A0But, intuitively, it seems like= :

=A0"foo" Module.(op) "bar"

would work -- it doesn't.

= Is there a way to keep the infix notation?

Thanks.=

--047d7b15ad97723bf404be9c9ff0--