home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / ada / 3840 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!seas.gwu.edu!mfeldman
  3. From: mfeldman@seas.gwu.edu (Michael Feldman)
  4. Subject: Re: Enum's start at 0?
  5. Message-ID: <1992Dec30.033842.10112@seas.gwu.edu>
  6. Sender: news@seas.gwu.edu
  7. Organization: George Washington University
  8. References: <238@trident.datasys.swri.edu>
  9. Date: Wed, 30 Dec 1992 03:38:42 GMT
  10. Lines: 23
  11.  
  12. In article <238@trident.datasys.swri.edu> tim@trident.datasys.swri.edu (Timothy J. Barton) writes:
  13. >Just curious, but is there a reason enumerated type's POS values
  14. >start at 0 instead of 1?
  15. >
  16. Just like everything else in computing. ASCII characters, for example,
  17. run from 0 to 127, not 128. You can represent 0..127 using one less bit than
  18. 1..128.
  19.  
  20. Mike Feldman
  21. ------------------------------------------------------------------------
  22. Michael B. Feldman
  23. co-chair, SIGAda Education Committee
  24.  
  25. Professor, Dept. of Electrical Engineering and Computer Science
  26. School of Engineering and Applied Science
  27. The George Washington University
  28. Washington, DC 20052 USA
  29. (202) 994-5253 (voice)
  30. (202) 994-5296 (fax)
  31. mfeldman@seas.gwu.edu (Internet)
  32.  
  33. "Americans want the fruits of patience -- and they want them now."
  34. ------------------------------------------------------------------------
  35.