TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WIM VELDHUIS
from: THOMAS MAEDER
date: 1997-07-03 18:01:00
subject: First C++ prog

WV> This is not entirely correct. Compilers usually allocate memory for
WV> declared as const ... This can result in warnings if you do this ins
The compiler has the right to expand constants inline. Good  compilers
do so instead of allocating memory. 
WV> The usual reasoning for using const in stead of #define is that the
WV> can be seen in the compiler (as it actually is a variable which is n
WV> to be modified).
Better replace your #defines with enums.
Thomas
---
 þ MM 1.0 #0113 þ GPF - the Microsoft Award for Programming Excellence..
---------------
* Origin: McMeier & Son BBS (2:301/138)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.