From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA14801; Sat, 8 Sep 2001 16:35:23 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA14890 for ; Sat, 8 Sep 2001 16:35:22 +0200 (MET DST) Received: from c012.sfo.cp.net (c012-h016.c012.sfo.cp.net [209.228.12.164]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f88EZKP08485 for ; Sat, 8 Sep 2001 16:35:21 +0200 (MET DST) Received: (cpmta 5517 invoked from network); 8 Sep 2001 07:35:19 -0700 Date: 8 Sep 2001 07:35:19 -0700 Message-ID: <20010908143519.5513.cpmta@c012.sfo.cp.net> X-Sent: 8 Sep 2001 14:35:19 GMT Received: from [24.152.1.84] by mail.altavista.com with HTTP; 08 Sep 2001 07:35:19 PDT Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: wduminy@freemail.absa.co.za From: Arturo Borquez Cc: caml-list@inria.fr X-Mailer: Web Mail 3.9.3.5 Subject: Re: [Caml-list] Infix X-Sent-From: aborquez@altavista.com Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 08 September 2001, "wduminy" wrote: > > > > > > > > >
Hello there,
>
How do you define an infix operator in > OCAML?
>
 
See documentation chapter 6.3 titled Naming objects example: complex addition # let ( +! ) a b = fst a +. fst b, snd a +. snd b;; val ( +! ) : float * float -> float * float -> float * float = # (3.0, 3.0) +! (1.0, 2.0);; - : float * float = 4, 5 Regards. Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr