Hi,
I'm trying to call a function known to the interpreter from compiled code.
It works nicely thanks to some examples already given by Masa using the
G__CallFunc class. But I cannot send a reference to object or pointer to
the function. More specifically, my problem is the same as the one
described by Jacek :
3. I cannot convince G__CallFunc to pass the reference (Double_t& X).
In case of a pointer "Y" I can simply say "func.SetArg(((long)Y))".
If I say "func.SetArg(((long)&X))", the function gets the
reference to somewhere in "para.*", not the original reference
to "X". This happens in all cases (G__INTERPRETEDFUNC,
G__BYTECODEFUNC,G__COMPILEDINTERFACEMETHOD) - can I somehow
convince SetArg to provide the original reference to "X" ?
Does anybody know how to do ?
Cheers
Damir
=====================================================================
| Damir Buskulic | Universite de Savoie/LAPP |
| | Chemin de Bellevue, B.P. 110 |
| Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex |
| e-mail: buskulic@lapp.in2p3.fr | FRANCE |
=====================================================================
mailto:buskulic@lapp.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET