Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ==
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sven <luther@d...>
Subject: Re: [Caml-list] ==
On Fri, Aug 03, 2001 at 04:39:21PM +0200, Willem Duminy wrote:
> Hello,
> Please explain to me why the following Caml Light declaration requires
> a "==".
> let 'a signiture == ('a * int) list;;
> I am working through the book: "The functional Approach to
> Programming" by Cousineau and Mauny.
> Thank you for helping.

because (in caml light) you are ddefining a type alias instead of a new type 
(as you would have down with type 'a sig = Sig of ('a * int) list for example).

Now, this little restriction is no more there in ocaml.


Sven Luther
Bug reports:  FAQ:
To unsubscribe, mail  Archives: