home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16487 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.4 KB  |  31 lines

  1. Newsgroups: comp.lang.c
  2. 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
  3. From: atbowler@thinkage.on.ca (Alan Bowler)
  4. Subject: Re: Binary Representation
  5. Message-ID: <1992Nov13.222336.5243@thinkage.on.ca>
  6. Organization: /etc/organization
  7. References: <1992Nov5.160215.25718@nosc.mil> <1992Nov5.222742.7875@unislc.uucp>
  8. Date: Fri, 13 Nov 1992 22:23:36 GMT
  9. Lines: 20
  10.  
  11. In article <1992Nov5.222742.7875@unislc.uucp> ttobler@unislc.uucp (Trent Tobler) writes:
  12. >Ray Mitchell (mitch@nosc.mil) wrote:
  13. >: 
  14. >: It seems that since C has bitwise operators and its treatment of pointers
  15. >: is so close to the underlying hardware, there should be a way of representing
  16. >: constants in binary in addition to decimal, hex, and octal.  Does anyone
  17. >: know why this was not done?  Maybe I'm the only one who sees any value in
  18. >: it.  (Please don't tell me to use assembly if I want binary).  I've
  19. >: contemplated some macro way of implementing a binary representation but
  20. >: have not come up with anything reasonable.  Any ideas?
  21. >
  22. >
  23. >Probably the reason for not including binary in the C language is that
  24. >binary tends to be long and bulky... and it is trivial to convert binary
  25. >to hex or octal in ones head.
  26. >
  27. Which of course is the same reason that most assemblers don't bother
  28. with binary either, and give you hex and octal contants to build
  29. bitmasks with.
  30.  
  31.