Browse thread
multiple inheritance, bug or feature ?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-02-25 (12:17) |
From: | Oliver Bandel <oliver@f...> |
Subject: | Re: [Caml-list] multiple inheritance, bug or feature ? |
On Sat, Feb 25, 2006 at 01:09:39PM +0100, sejourne_kevin wrote: > Oliver Bandel a écrit : > > >>When I wrote this program I expect this behavior but > >>according to the warnings M the result should be 3. > > > > > >Why do you think the expected behaviour should be > >printing the 3? > > > >Your method prints the old value, not the new value. > > > I know that. That is not the problem. The problem is that > there is two references on two differents values. > set_x_a' set_x_a are not using the same 'x'. Yes. As you called one of your internal states "y", not "x" I would expect the behaviour that your implementation shows. But I changes then in class b the "y" to "x" and it showed the same behaviour. Well, this is what I didn't expected... and the error messages, on which I now looked in more detail, well, are strange... (also in your case...) ?! Ciao, Oliver