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] Is a Cow an Animal?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-04-18 (23:31)
From: Pixel <pixel@m...>
Subject: Re: [Caml-list] Is a Cow an Animal?
james woodyatt <> writes:

> On Thursday, April 18, 2002, at 03:44 PM, Pixel wrote:
> >
> > well, i don't really understand the """type 'diet energy = int""" stuff.


> It looks like the 'a energy type is not actually abstract in your trial above.
> It has to be abstract or the technique doesn't work.

/me is bad (bis)

and worse, it seems I'm still missing something since subsumption is still not

What I now understand is that it allows to have 
  [ `E_rabbit | `E_human]
a subtype of 
  [ `E_rabbit ]
which is needed to have the food tied to its eaters instead instead of
having the animal tied to its accepted_food.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: