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] class type
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] class type
From: Vladimir Skokov <>

> I need to define class(let me call it c1) type to use it latter as a type 
> constraint. My class(c1) also inherits some virtual classes(v1 and v2). 
> Should i explicitly define  inherited methods and values in class type?  

Contrary to modules, classes define automatically a class type,
and you can use include in class types.

Jacques Garrigue

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