RE:[ROOT]null pointer in function call

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Fri May 12 2000 - 23:35:28 MEST


Hi Damir,

Will you tell us what Cint version and what exact contect this happens?
I tried it on the latest cint and it worked fine. I wonder if specific
version has a bug, or other complication.

Thank you
Masaharu Goto



>Hi everybody,
>
>I have a function (compiled) that waits for a pointer of a certain type,
>say FrVect*. It is allowed to pass it a null pointer. Let's say the
>prototype of the function is 
>My_Function(FrVect* vector)
>When I do
>
>My_Function(0) it says that there is no such function but
>
>My_Function((FrVect*)0) works.
>
>This was working without explicit cast in 2.23/12. Is it a new feature ?
>I don't remember what the C standard says. Or is it just still a problem
>in cint with implicit type conversion ?
>
>Sorry if this has been asked before
>
>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 02 2001 - 11:50:25 MET