On Thursday 25 November 2004 15:52, Eckhard Jokisch wrote:
> SoundDriver *driver = 0;
>
> Coming from the C world I would not like to see this in my code but maybe
> this is not dangerous in c++?
It's not dangerous, it's good practice, both in C and C++. At least if you
dereference the pointer without initializing it first, you get a "clean"
crash, rather than a possibly corrupt stack trace.
--
Guillaume.
http://www.telegraph-road.org
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel