From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5F430BB81 for ; Sat, 25 Feb 2006 12:59:01 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k1PBx0Zo012878 for ; Sat, 25 Feb 2006 12:59:00 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA18949 for ; Sat, 25 Feb 2006 12:59:00 +0100 (MET) Received: from smtp007.mail.ukl.yahoo.com (smtp007.mail.ukl.yahoo.com [217.12.11.96]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id k1PBwxrR012872 for ; Sat, 25 Feb 2006 12:58:59 +0100 Received: (qmail 50759 invoked from network); 25 Feb 2006 11:58:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:Message-ID:Date:From:Reply-To:User-Agent:X-Accept-Language:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=cPfBBssZfyfZd2MGGQAbsnPIJ6JkyHQjSrlLjarQnR/FE++Xn86lJ8O9np34bsXmls+0rWykIFdYQKcyMrd+K3xcEwioHdHkQdwP9Krzb8Y5NCsS96cBjMtXDohskCiDEYwfI+ATpoQmVQRLDYmkV3+lTJEIaVegyKvDCJG3YPE= ; Received: from unknown (HELO ?84.102.56.68?) (sejourne?kevin@84.102.56.68 with plain) by smtp007.mail.ukl.yahoo.com with SMTP; 25 Feb 2006 11:58:59 -0000 Message-ID: <44004903.5050104@yahoo.fr> Date: Sat, 25 Feb 2006 13:09:39 +0100 From: sejourne_kevin Reply-To: sejourne@limsi.fr User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en MIME-Version: 1.0 To: caml-list Subject: Re: [Caml-list] multiple inheritance, bug or feature ? References: <440038EC.5060302@yahoo.fr> <20060225114859.GA460@first.in-berlin.de> In-Reply-To: <20060225114859.GA460@first.in-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 44004684.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44004683.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bug:01 oliver:01 bandel:01 'x':01 telechargez:98 wrote:01 behaviour:01 warnings:02 inheritance:03 ecrit:04 problem:05 problem:05 appeler:06 feature:08 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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'. ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com