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 BAA01327; Mon, 24 Sep 2001 01:25:33 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA01399 for ; Mon, 24 Sep 2001 01:25:32 +0200 (MET DST) Received: from c012.sfo.cp.net (c012-h014.c012.sfo.cp.net [209.228.13.214]) by nez-perce.inria.fr (8.11.1/8.10.0) with SMTP id f8NNPVD06559 for ; Mon, 24 Sep 2001 01:25:31 +0200 (MET DST) Received: (cpmta 5026 invoked from network); 23 Sep 2001 16:25:24 -0700 Date: 23 Sep 2001 16:25:24 -0700 Message-ID: <20010923232524.5025.cpmta@c012.sfo.cp.net> X-Sent: 23 Sep 2001 23:25:24 GMT Received: from [24.152.104.20] by mail.altavista.com with HTTP; 23 Sep 2001 16:25:24 PDT Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: florian@hars.de From: Arturo Borquez Cc: caml-list@inria.fr X-Mailer: Web Mail 3.9.3.5 Subject: Re: [Caml-list] Haskell features in O'Caml X-Sent-From: aborquez@altavista.com Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, 23 September 2001, Florian Hars wrote: ..... > > > Also if a function is named using operator symbols it can be used as > > > an operator, e.g if &&& is defined as: > > Ocaml: > > # let ( &&& ) x y = if x >= y then x else y;; > > But you cannot change the fixity, it is defined by the first char of > the operator, ie. ++, +*/- and +@%&!- all have the same precedence and > associativity as +. Yes, but default associativity can be overriden using proper parens, and produces more readable code. Best regards Arturo 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