[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: maint: c++: use nullptr for C++11
From: |
Akim Demaille |
Subject: |
Re: RFC: maint: c++: use nullptr for C++11 |
Date: |
Sun, 1 Apr 2012 12:05:56 +0200 |
Le 30 mars 2012 à 20:15, Paul Eggert a écrit :
> Yes it does, but it's more complicated than that...
> Basically, any C implementation can put this into
> <stddef.h>, and it will conform to the standard:
>
> #define NULL 0
>
> A C implementation is also allowed to put this into <stddef.h>:
>
> #define NULL ((void *) 0)
>
> and this will also conform to C89 or later; but this latter
> approach is less portable to ancient compilers so for Bison
> plain 0 is probably better.
How about dropping K&R support in 2.6? I can't even find a means
to check how Bison's generated code behaves with GCC which no
longer seems to support pre-ANSI C.
The Bison documentation is unclear about this too.
So I would suggest to display a big banner in 2.5.1's NEWS
stating that we will remove K&R support.
- Re: RFC: maint: c++: use nullptr for C++11,
Akim Demaille <=