English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2002-06-25 (12:28)
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 <jhw@wetware.com>
> 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 <erayo@bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C

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