On Thu, Feb 25, 2010 at 9:34 PM, Thomas Hruska <[email protected]>wrote:

>
>
>
>
> Actually, there is a 'bool' type in C++. But I understand the point.
> I'm old-school and prefer NULL assignments and comparisons. In C, you
> never assumed that NULL was 0. Everyone seems to have settled on that
> value as invalid these days, so C++ probably adopted it (too lazy to
> look it up in the Rationale).
>
> I've noticed most people are saying NULL is defined as:
>
> #define NULL 0
>
> I've also seen (probably C):
>
> #define NULL ((void *)0)
>
> I would hope it was C, as it wouldn't be very useful in C++ considering

int* p = (void *)0;

is a compile error in C++. ;)



-- 
Pete Calvert
Simple Geek Test: How many syllables in coax?


[Non-text portions of this message have been removed]

Reply via email to