Checking if a function pointer is set or null

Uknown sireeshkodali1 at gmail.com
Mon Apr 9 01:43:12 UTC 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


More information about the Digitalmars-d-learn mailing list