home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!hela.iti.org!usc!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!thinkage!atbowler
- From: atbowler@thinkage.on.ca (Alan Bowler)
- Subject: Re: Binary Representation
- Message-ID: <1992Nov13.222336.5243@thinkage.on.ca>
- Organization: /etc/organization
- References: <1992Nov5.160215.25718@nosc.mil> <1992Nov5.222742.7875@unislc.uucp>
- Date: Fri, 13 Nov 1992 22:23:36 GMT
- Lines: 20
-
- In article <1992Nov5.222742.7875@unislc.uucp> ttobler@unislc.uucp (Trent Tobler) writes:
- >Ray Mitchell (mitch@nosc.mil) wrote:
- >:
- >: It seems that since C has bitwise operators and its treatment of pointers
- >: is so close to the underlying hardware, there should be a way of representing
- >: constants in binary in addition to decimal, hex, and octal. Does anyone
- >: know why this was not done? Maybe I'm the only one who sees any value in
- >: it. (Please don't tell me to use assembly if I want binary). I've
- >: contemplated some macro way of implementing a binary representation but
- >: have not come up with anything reasonable. Any ideas?
- >
- >
- >Probably the reason for not including binary in the C language is that
- >binary tends to be long and bulky... and it is trivial to convert binary
- >to hex or octal in ones head.
- >
- Which of course is the same reason that most assemblers don't bother
- with binary either, and give you hex and octal contants to build
- bitmasks with.
-
-