digitalmars.D.learn - Checking if a function pointer is set or null
-
solidstate1991
(2/2)
Apr 08 2018
Would the if(!(myFunctionPointer is null)){
} work is I - Uknown (3/5) Apr 08 2018 Yes, that works as you expect
- Jonathan M Davis (5/7) Apr 08 2018 You can also do
Would the if(!(myFunctionPointer is null)){<dostuff>} work is I
intended?
Apr 08 2018
On Monday, 9 April 2018 at 00:25:08 UTC, solidstate1991 wrote:
Would the if(!(myFunctionPointer is null)){<dostuff>} work is I
intended?
Yes, that works as you expect
https://run.dlang.io/is/ZTtm0P
Apr 08 2018
On Monday, April 09, 2018 00:25:08 solidstate1991 via Digitalmars-d-learn
wrote:
Would the if(!(myFunctionPointer is null)){<dostuff>} work is I
intended?
You can also do
if(myFunctionPointer !is null)
- Jonathan M Davis
Apr 08 2018









Uknown <sireeshkodali1 gmail.com> 