if (p) p-> func() ;There's got to be a way of making a NULL safe pointer. You can already delete NULL if you want to, no harm there. How about letting us deref NULL or call it: NULL-> func() which of course would do nothing. Fine, there's some implementation details to work out, like what's the return type for * NULL, but if I can just cut out 90% of my
return (p) ? * p : NULL ;I'll be happy. Time to put the old thinking hat on.
Feb '04
Oops I dropped by satellite.
New Jets create excitement in the air.
The audience is not listening.
Mar '04
Neat chemicals you don't want to mess with.
The Lack of Practise Effect
Apr '04
Scramjets take to the air
Doing dangerous things in the fire.
The Real Way to get a job
May '04
Checking out cool tools (with the kids)
A master geek (Ink Tank flashback)
How to play with your kids