| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Tutorial questions? |
Hi John, You wrote to Darin McBride: JG> TT>> How did you come to the conclusion that const and static are JG> TT>> equivalent ? JG> DM> Simple - if you don't change a static variable, it is const! :-) JG>There is one really humongous difference, which most people seem to have JG>overlooked. A const uses no memory. It's nothing more than JG>a symbol used to make the source more readable and/or less JG>prone to errors. OTOH, a static *does* require storage JG>space, even if it's contents can't be altered. ????? If "const" used no memory a lot of code would break. It is just compiler information, like "static", and does not remove the need for memory for the variable marked as "const". George * SLMR 2.1a * Computers eliminate spare time. --- Maximus/2 3.01* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4) SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 810 639/252 SEEN-BY: 670/218 @PATH: 440/4 255/1 251/25 396/1 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™.