Version française
Home     About     Download     Resources     Contact us    
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.

Friendly,

Sven Luther
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr