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 CAA14418; Tue, 13 Aug 2002 02:50:08 +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 CAA14384 for ; Tue, 13 Aug 2002 02:50:06 +0200 (MET DST) Received: from imo-d05.mx.aol.com (imo-d05.mx.aol.com [205.188.157.37]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7D0o4f21200 for ; Tue, 13 Aug 2002 02:50:04 +0200 (MET DST) Received: from artboreb@netscape.net by imo-d05.mx.aol.com (mail_out_v33.5.) id v.5d.3abbf4c (22680); Mon, 12 Aug 2002 20:49:51 -0400 (EDT) Received: from netscape.net (mow-m03.webmail.aol.com [64.12.184.131]) by air-in04.mx.aol.com (v86_r1.16) with ESMTP id MAILININ41-0812204951; Mon, 12 Aug 2002 20:49:51 -0400 Date: Mon, 12 Aug 2002 20:49:51 -0400 From: artboreb@netscape.net (Arturo Borquez) To: tim@fungible.com (Tim Freeman) Cc: caml-list@inria.fr Subject: RE: [Caml-list] Why are type functions postfix? Message-ID: <2039F92F.25213024.00958B05@netscape.net> X-Mailer: Atlas Mailer 2.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk tim@fungible.com (Tim Freeman) wrote: > >In OCAML and other ML dialects I've used, you say: > > let x: int ref = ref 3 > >Is there any reason that type functions like the first "ref" are >postfix, unlike function application like the second "ref" that is >prefix? > In the revised syntax (Camlp4) that is: value x : ref int = ref 3; (* ref prefixed on both sides *) Regards Arturo Borquez __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners