home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18680 < prev    next >
Encoding:
Text File  |  1993-01-04  |  972 b   |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!panther!mothost!lmpsbbs!mcil.comm.mot.com!yaronl
  3. From: yaronl@mcil.comm.mot.com (Yaron Levy)
  4. Subject: how to declare constants ?
  5. Organization: Motorola Communications Israel Ltd., Tel Aviv
  6. Date: Mon, 4 Jan 1993 09:38:40 GMT
  7. Message-ID: <1993Jan4.093840.3763@lmpsbbs.comm.mot.com>
  8. Sender: yaronl@comm.mot.com (Yaron Levy)
  9. Nntp-Posting-Host: 145.9.71.11
  10. Lines: 17
  11.  
  12. Our project team is currently discussing the standards using constants. 
  13. The meaning of constants is numeric values that are fixed in all modules, 
  14. what used to be :
  15. #define MAX_NAME_LENGTH  12
  16.  
  17. Currently we declare in our hpp files, outside the scope of the class
  18. declaration : 
  19. const UINT16 MAX_NAME_LENGTH = 12;
  20.  
  21. We are not satisfied with the current solution. For example, we prefer
  22. that several constants will be inside the scope of classes.
  23.  
  24. Do you use a better, nicer convention ?
  25.  
  26. Please e-mail [yaronl@mcil.comm.mot.com], I'll post a summary. 
  27.  
  28.  - Yaron.
  29.