English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2006-08-29 (14:07)
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.



Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer