This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]