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 IAA32246; Thu, 15 Mar 2001 08:28:49 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA32339 for caml-list@pauillac.inria.fr; Thu, 15 Mar 2001 08:28:48 +0100 (MET) 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 SAA22941 for ; Wed, 14 Mar 2001 18:48:21 +0100 (MET) Received: from order.if.uj.edu.pl (order.if.uj.edu.pl [149.156.90.15]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f2EHmKf07124 for ; Wed, 14 Mar 2001 18:48:20 +0100 (MET) Received: (from ostruszk@localhost) by order.if.uj.edu.pl (8.9.3/8.9.3) id SAA15140 for caml-list@inria.fr; Wed, 14 Mar 2001 18:48:13 +0100 Date: Wed, 14 Mar 2001 18:48:13 +0100 From: "Andrzej M. Ostruszka" To: Caml List Subject: [Caml-list] Specifying precedence ... Message-ID: <20010314184813.A15130@order.if.uj.edu.pl> Mail-Followup-To: Caml List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, Is it possible to specify precedence of an "operator"? E.g. if I have something like let (^^) x y = let rec pow res y p = if y = 0 then res else let newres = if y land 1 <> 0 then res * p else res in pow newres (y lsr 1) (p*p) in pow 1 y x then I'd like to evaluate 2*3^^2 to 18 (not 36). Best regards -- ____ _ ___ / | \_/ |/ _ \ Andrzej Marek Ostruszka / _ | | (_) | Instytut Fizyki, Uniwersytet Jagiellonski (Cracow) /_/ L|_|V|_|\___/ (PGP <-- finger ostruszk@order.if.uj.edu.pl) ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr