Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: Execution time of class versus record
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Re: Execution time of class versus record
On 6/26/07, David Allsopp <dra-news@metastack.com> wrote:
> On Jun 26, 2007, at 08:53 AM, Loup Vaillant wrote:
> > > For the same reason, there is a difference between:
> > >
> > >   type t = A of int * int
> > >
> > > and:
> > >
> > >   type t = A of (int * int)
> >

[...]

> I believe the "revised" syntax for O'Caml
> changes the way these are declared to make it clearer but I've never looked
> at it...
>

Exactly:

type t = [ A of int and int ];

and

type t = [ A of (int * int) ];

-- 
Nicolas Pouillard