Version française
Home     About     Download     Resources     Contact us    
Browse thread
native values in objects from c
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Wohlwend <micha-1@f...>
Subject: Re: [Caml-list] native values in objects from c

-------- 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