PING*2: [Bug preprocessor/23479] Implement binary constants with a "0b" prefix

Mark Mitchell mark@codesourcery.com
Mon Apr 23 00:42:00 GMT 2007


Dave Korn wrote:
> On 22 April 2007 20:05, Per Bothner wrote:
> 
>> There are two issues:
>> (1) do we want this extension;
>> (2) is the implementation/patch ok?
>>
>> I think most people don't have a strong opinion either way on (1).
>> It's a slight convenience for some applications, but it obviously
>> doesn't add any new functionality.

I'm inclined to approve the patch.  It looks technically OK, and I agree
that the feature, while perhaps not incredibly useful, is so widely
supported in other compilers that we may as well support it in GCC as
well.  However, if there are conflicts with standard C, that might
change my mind.

Joseph, has there been any discussion of this in WG14?  Is there any
conflict between the proposed 0b... syntax and any other aspect of C,
current or proposed?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list