TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: George White
from: Bill Birrell
date: 1998-10-01 09:38:02
subject: Tutorial questions?

George,

 > ?????
 > 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".

    See 6.5.3. Note 97, George. He is right if and only if the address of
the identifier type-qualified as const is never used. It *is* possible to
write such code in C. Static is also more then just compiler information.
It is one of the three storage duration specifiers - static, auto or
allocated.

    Everybody seems to miss the point that an identifier type-qualified as
const is NOT a variable at all. It is a constant. The difference is
fundamental, particularly in calculus.

    I do not have an abstract machine, so the vagaries of volatile consts
during side effects are completely lost on me. :-) I suspect that they
would still be lost on me if somebody gave me an abstract machine. :-)

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