TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Darin McBride
from: John Gardeniers
date: 1998-09-23 21:19:46
subject: Tutorial questions?

Hi Darin,

 -=> 21 Sep 98 00:37, Darin McBride wrote to Tom Torfs <=-

 TT>> How did you come to the conclusion that const and static are
 TT>> equivalent ?

 DM> Simple - if you don't change a static variable, it is const!  :-)

There is one really humongous difference, which most people seem to have
overlooked. A const uses no memory. It's nothing more than a symbol used to
make the source more readable and/or less prone to errors. OTOH, a static
*does* require storage space, even if it's contents can't be altered.

        ttyl,
            >>> Fuse (fuse{at}one.net.au) >>>

--- GoldED/W32 3.00.Beta3 UNREG
* Origin: The Cubby House (3:634/391)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/383 384 391 397 635/506 728
SEEN-BY: 635/810 639/252 670/218
@PATH: 634/391 397 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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™.