Version française
Home     About     Download     Resources     Contact us    
Browse thread
multiple inheritance, bug or feature ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] multiple inheritance, bug or feature ?
On Sat, Feb 25, 2006 at 08:44:22PM +0900, Jacques Garrigue wrote:
[...]
> I'm also wondering whether this is really necessary to have a warning
> for overriding through inheritance. If overriding was intentional, then
> the warning is pointless. Do you see situations where one could end up
> doing this unintentionally?


Every warning that a compiler can throw makes sense for someone
who might need this.
Is this warning possible to turn off? Then you could do it.
But I prefer as default have more warnings, not less.


Well, OO should help to have less copy&pasted code, but some things
might be done in this way.
A warning on the overridden methods IMHO make sense.

Ciao,
   Oliver