caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] class type
@ 2003-09-07 13:58 Vladimir Skokov
  2003-09-07 23:53 ` Jacques Garrigue
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Skokov @ 2003-09-07 13:58 UTC (permalink / raw)
  To: caml-list

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?  

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] class type
  2003-09-07 13:58 [Caml-list] class type Vladimir Skokov
@ 2003-09-07 23:53 ` Jacques Garrigue
  0 siblings, 0 replies; 2+ messages in thread
From: Jacques Garrigue @ 2003-09-07 23:53 UTC (permalink / raw)
  To: jove; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-07 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-07 13:58 [Caml-list] class type Vladimir Skokov
2003-09-07 23:53 ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).