caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] multiple inheritance, bug or feature ?
Date: Sat, 25 Feb 2006 13:16:28 +0100	[thread overview]
Message-ID: <20060225121628.GA533@first.in-berlin.de> (raw)
In-Reply-To: <44004903.5050104@yahoo.fr>

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


  reply	other threads:[~2006-02-25 12:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-25 11:01 sejourne_kevin
2006-02-25 11:44 ` [Caml-list] " Jacques Garrigue
2006-02-25 11:55   ` Oliver Bandel
2006-02-25 11:48 ` Oliver Bandel
2006-02-25 12:09   ` sejourne_kevin
2006-02-25 12:16     ` Oliver Bandel [this message]
2006-02-25 12:33       ` Oliver Bandel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060225121628.GA533@first.in-berlin.de \
    --to=oliver@first.in-berlin.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).