TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BALOG PAL
from: KURT KUZBA
date: 1997-04-03 11:45:00
subject: THINGS

BP> KK>   private:
BP> KK>   char *name;
BP> KK>   name = char*(NULL);
BP>   2 questions:
BP>      a) why do you use the cast?
BP>      b) why do you use NULL?
BP>   I'd probably use
BP>   name = 0;
bp>....
   Just force of habit, really.
Since I mean to return a pointer of type char, that is
precisely what I am going to do.
The compiler will not likely complain at name = 0, true.
It is simply mindless adherence for no real reason other than
that my superstitious rituals comfort me. :)
Since the code that is output is probably identical, I really
didn't accomplish anything except possibly the removal of a
mostly harmless ambiguity from the source.
> ] I'm so relieved...  My IQ test came back negative...........
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.