caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] how to start
@ 2002-10-16 14:11 climb
  2002-10-16 18:46 ` Chris Hecker
  0 siblings, 1 reply; 3+ messages in thread
From: climb @ 2002-10-16 14:11 UTC (permalink / raw)
  To: caml-list

Dear caml-list
 
 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};;

 

thanks
                         climb
                         onlyclimb@163.com
                         2002-10-16

 



-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] how to start
  2002-10-16 14:11 [Caml-list] how to start climb
@ 2002-10-16 18:46 ` Chris Hecker
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Hecker @ 2002-10-16 18:46 UTC (permalink / raw)
  To: climb, caml-list


>  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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] how to start
@ 2002-10-16 15:11 MONIN Jean-Francois FTRD/DTL/LAN
  0 siblings, 0 replies; 3+ messages in thread
From: MONIN Jean-Francois FTRD/DTL/LAN @ 2002-10-16 15:11 UTC (permalink / raw)
  To: climb; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

> # type idref={ mutable id : 'a. 'a -> 'a};;
> what does "." mean?

This just a separator. 
You can read 'a. 'a -> 'a  as  (forall 'a) 'a -> 'a

  Jean-Francois Monin

[-- Attachment #2: Type: text/html, Size: 691 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-16 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16 14:11 [Caml-list] how to start climb
2002-10-16 18:46 ` Chris Hecker
2002-10-16 15:11 MONIN Jean-Francois FTRD/DTL/LAN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).