| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Tutorial questions? |
Hi Tom,
[storage of const objects]
You said to John Gardeniers:-
> Probably because it isn't true :-)
But it is true, Tom, under certain circumstances which John may well
have taken for granted. See 6.5.3 note 97 of the standard.
"97 The implementation may place a const object that is not volatile in a
read-only region of storage. Moreover, the implementation need not allocate
storage for such an object if its address is never used."
So John is not wrong there. An identifier type-qualified as const *in
C* does NOT require storage space unless its address is used.
Best wishes,
Bill.
---
* Origin: Meerkats Anonymous (2:2504/200)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: 2504/200 213 255/3 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™.