[ROOT]null pointer in function call

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Thu May 11 2000 - 16:39:17 MEST


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