home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!panther!mothost!lmpsbbs!mcil.comm.mot.com!yaronl
- From: yaronl@mcil.comm.mot.com (Yaron Levy)
- Subject: how to declare constants ?
- Organization: Motorola Communications Israel Ltd., Tel Aviv
- Date: Mon, 4 Jan 1993 09:38:40 GMT
- Message-ID: <1993Jan4.093840.3763@lmpsbbs.comm.mot.com>
- Sender: yaronl@comm.mot.com (Yaron Levy)
- Nntp-Posting-Host: 145.9.71.11
- Lines: 17
-
- Our project team is currently discussing the standards using constants.
- The meaning of constants is numeric values that are fixed in all modules,
- what used to be :
- #define MAX_NAME_LENGTH 12
-
- Currently we declare in our hpp files, outside the scope of the class
- declaration :
- const UINT16 MAX_NAME_LENGTH = 12;
-
- We are not satisfied with the current solution. For example, we prefer
- that several constants will be inside the scope of classes.
-
- Do you use a better, nicer convention ?
-
- Please e-mail [yaronl@mcil.comm.mot.com], I'll post a summary.
-
- - Yaron.
-