From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id C0985BC29 for ; Tue, 29 Aug 2006 16:07:18 +0200 (CEST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by nez-perce.inria.fr (8.13.6/8.13.6) with SMTP id k7TE7I96018407 for ; Tue, 29 Aug 2006 16:07:18 +0200 Received: (qmail 31719 invoked by uid 0); 29 Aug 2006 14:07:17 -0000 Received: from 194.25.187.120 by www078.gmx.net with HTTP; Tue, 29 Aug 2006 16:07:17 +0200 (CEST) Cc: caml-list@inria.fr Content-Type: text/plain; charset="iso-8859-1" Date: Tue, 29 Aug 2006 16:07:17 +0200 From: "Michael Wohlwend" In-Reply-To: <20060829.220511.27011347.garrigue@math.nagoya-u.ac.jp> Message-ID: <20060829140717.108000@gmx.net> MIME-Version: 1.0 References: <20060829115002.108020@gmx.net> <20060829.220511.27011347.garrigue@math.nagoya-u.ac.jp> Subject: Re: [Caml-list] native values in objects from c To: Jacques Garrigue X-Authenticated: #20477425 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce with ID 44F44A16.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; pointer:01 cheers:01 ihrer:98 isdn:98 caml-list:01 70%:98 linear:02 variables:02 native:02 external:02 objects:02 inherited:03 fault:04 definition:07 definition:07 -------- Original-Nachricht -------- > > Well, since fields start at 0, the 3rd field is number 2. thanks for helping; actually my fault was to think the elements are linear ordered, even if the class is inherited (I want to get the first value of the base). The values are ordered reverse of definition, whereas the docu says: "Instance variables are stored in the order in which they appear in the class definition" In the end I want to hide public methods which give you access the the pointer to the c++ object and hiding an external method is easy. cheers Michael -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer