~OT: any proposals to add provision for binary integer values

Brian Dessent brian@dessent.net
Wed Jun 13 21:15:00 GMT 2007


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



More information about the Gcc-help mailing list