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] subtyping and inheritance (bug?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eray Ozkural <erayo@c...>
Subject: Re: [Caml-list] subtyping and inheritance (bug?)
On Tuesday 25 June 2002 05:54, Jacques Garrigue wrote:
> From: james woodyatt <>
> Sure. The children_set method contains a contravariant occurence of 'self.
> It cannot be compatible with its subclasses.  You don't need to have
> mutable data to have variance incompatibilities.
> No bug, business as usual.

Which programming style would express the intended semantics, then? I guess we 
would need a slightly different formulation.


Eray Ozkural <>
Comp. Sci. Dept., Bilkent University, Ankara
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C

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