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

> 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?  

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

Jacques Garrigue

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners