Article View: fa.caml
Article #142[Caml-list] using infix operators/functions in modules when not using "open"
From: ocamllist.robertwork
Date: Thu, 26 Apr 2012 22:39
Date: Thu, 26 Apr 2012 22:39
23 lines
3657 bytes
3657 bytes
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. -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
Technical Details
Message-ID:
<fa.ofhQjxcsFv94sv/nWA+yTdO/Akc@ifi.uio.no>Path:
arc1-ca.pugleaf.net!r9ni102155pbh.0!nntp.google.com!news1.google.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff861,b3875ae36b84daab,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidc0fe4b917e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.236.170 with SMTP id uv10mr7277621pbc.4.1335479978275;
Thu, 26 Apr 2012 15:39:38 -0700 (PDT)
Path: arc1-ca.pugleaf.net!r9ni102155pbh.0!nntp.google.com!news1.google.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: ocamllist.robertwork@spamgourmet.com
Newsgroups: fa.caml
Subject: [Caml-list] using infix operators/functions in modules when not using "open"
Date: Thu, 26 Apr 2012 22:39:37 UTC
Organization: Internet mailing list
Lines: 32
Message-ID: <fa.ofhQjxcsFv94sv/nWA+yTdO/Akc@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1335479977 27523 129.240.7.9 (26 Apr 2012 22:39:37 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Thu, 26 Apr 2012 22:39:37 +0000 (UTC)
To: caml-list@inria.fr
X-IronPort-AV: E=Sophos;i="4.75,487,1330902000";
d="scan'208";a="155825758"
X-Authentication-Warning: walapai.inria.fr: sympa set sender to caml-list-owner@inria.fr using -f
X-Sympa-To: caml-list@inria.fr
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"
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==
X-Originating-IP: [173.167.122.54]
X-Gm-Message-State: ALoCoQkqM9R8D4ViD1qPDEl1992A+z9unNuc7yY6vxBBJCeMtd9IHVU3/VS5Ajxm0Oy13dmSCDnT
X-Validation-by: ocamllist.robertwork@spamgourmet.com
X-Sequence: 3972
List-Id: <caml-list.inria.fr>
List-Archive: <https://sympa-roc.inria.fr/wws/arc/caml-list>
List-Help: <mailto:sympa@inria.fr?subject=help>
List-Owner: <mailto:caml-list-request@inria.fr>
List-Post: <mailto:caml-list@inria.fr>
List-Subscribe: <mailto:sympa@inria.fr?subject=subscribe%20caml-list>
List-Unsubscribe: <mailto:sympa@inria.fr?subject=unsubscribe%20caml-list>
X-FA-Processed: Removed HTML alternative
Original-Date: Thu, 26 Apr 2012 15:36:46 -0700
Original-Message-Id: <CAN2fQM6PmfgkBspx1Js0yq8r2hbtd15mhvDXQ6tUcmAL46q=rw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit