This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: ~OT: any proposals to add provision for binary integer values
- From: Brian Dessent <brian at dessent dot net>
- To: Shriramana Sharma <samjnaa at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 13 Jun 2007 05:36:06 -0700
- Subject: Re: ~OT: any proposals to add provision for binary integer values
- References: <466D6E13.4090001@gmail.com>
- Reply-to: gcc-help at gcc dot gnu dot org
Shriramana Sharma wrote:
> which all mean the same. But we are not allowed to use binary values:
>
> 0b1111101000
>
> So I wonder if this can be included into a future standard of both C and
> C++. Does anyone know if this has already been suggested and accepted?
This feature was actually added to gcc 4.3 back in April, after sitting
around in various patch forms for nearly two years. If you read the
thread, it is hoped that having this feature in a popular production
compiler will inspire the standards bodies to adopt it in the future,
where they have previously dismissed it as unnecessary.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23479
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01458.html
Brian