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 UAA09465; Wed, 16 Oct 2002 20:46:20 +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 UAA09247 for ; Wed, 16 Oct 2002 20:46:19 +0200 (MET DST) Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id g9GIkID09235 for ; Wed, 16 Oct 2002 20:46:18 +0200 (MET DST) Received: (qmail 63650 invoked from network); 16 Oct 2002 18:46:16 -0000 Received: from adsl-host-sf-228.apexworld.net (HELO checkerlap.d6.com) (66.114.212.228) by relay1.pair.com with SMTP; 16 Oct 2002 18:46:16 -0000 X-pair-Authenticated: 66.114.212.228 Message-Id: <4.3.2.7.2.20021016114328.038b80a0@mail.d6.com> X-Sender: checker@mail.d6.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 16 Oct 2002 11:46:39 -0700 To: "climb" , "caml-list@inria.fr" From: Chris Hecker Subject: Re: [Caml-list] how to start In-Reply-To: <200210161411.g9GEBh505395@concorde.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > i am a new commer of Caml language. and start with online mannul > i am confused at this sentence in Chapter 1 ># type idref={ mutable id : 'a. 'a -> 'a};; >what does "." mean? >why i can not write ># type intidref= { mutable id : int. int->int};; This is a new feature in the language, and you really don't need to learn it quite yet if you're just starting out. Basically, before the 'a. syntax was introduced, there was no way to store some kinds of functions (polymorphic ones) in datastructures. You don't need int. int->int because that's not a polymorphic function, so it's just int -> int. I'd just ignore it for now. :) You should also check out the O'Reilly book referenced on http://caml.inria.fr Chris ------------------- 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