Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
question about caml_get_public_method
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-08-21 (07:15)
From: Michael Wohlwend <micha-1@f...>
Subject: question about caml_get_public_method
if I want to connect a c++ method to a method of an ocaml class, I can choose between:
a) in the initializer of the ocaml class use register_value to register a method (like self#some_method) and then calling an external function which caches the registered value and calls that method


b) calling an external function with the ocaml object as argument and then  use caml_get_public_method, cache the method-id of the callback methods and use those to make the callback.

Is this just a matter of taste which one to use?


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: