From: Chris Hecker <checker@d6.com>
To: "climb" <onlyclimb@163.com>, "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] how to start
Date: Wed, 16 Oct 2002 11:46:39 -0700 [thread overview]
Message-ID: <4.3.2.7.2.20021016114328.038b80a0@mail.d6.com> (raw)
In-Reply-To: <200210161411.g9GEBh505395@concorde.inria.fr>
> 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
next prev parent reply other threads:[~2002-10-16 18:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-16 14:11 climb
2002-10-16 18:46 ` Chris Hecker [this message]
2002-10-16 15:11 MONIN Jean-Francois FTRD/DTL/LAN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4.3.2.7.2.20021016114328.038b80a0@mail.d6.com \
--to=checker@d6.com \
--cc=caml-list@inria.fr \
--cc=onlyclimb@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox