Xref: utzoo comp.lang.c:5513 comp.lang.c++:582
Path: utzoo!mnetor!uunet!husc6!cca!mirror!ima!haddock!karl
From: karl@haddock.ISC.COM (Karl Heuer)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: Binary integer literals
Message-ID: <1924@haddock.ISC.COM>
Date: 10 Dec 87 00:10:10 GMT
References: <2752@super.upenn.edu>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 13
Keywords: binary, integer, literal

In article <2752@super.upenn.edu> george@hyper.lap.upenn.edu (George Zipperlen) writes:
>Wanted: a way to declare binary constants!

Yeah, I'd occasionally find that useful too.  The obvious syntax is 0b1011.

>[Can we get this to the ANSI committee?]

You'll get the usual response: "Need not convincingly shown; doable with
existing features; lack of prior art".  Since it's an easy feature to add, put
it in your local cc (or ask your vendor to do so) as an extension -- if it
becomes popular enough, it may make it into __STDC__==2.

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint