Re: Static Variables
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Tue, 20 Feb 2007 13:32:49 -0800
Flash Gordon <spam@xxxxxxxxxxxxxxxxxx> writes:
Richard Heathfield wrote, On 20/02/07 09:57:[...]
akhil.misra@xxxxxxxxx said:
where does a static variable inside a function get stored??
In random access memory, or "RAM" (or, if it's const, it might get put
into read-only memory, or "ROM").
You mean my implementation using pairs of goldfish to store each bit
(one a second the goldfish that knows the current value tells the other
goldfish to "refresh" the bit and stop it from being forgotten) is not a
conforming implementation? Damn.
Sure it's conforming. There's nothing that says that random access
memory has to be made from semiconductors rather than, say, small
fishes or tiny iron toruses. But your access is likely to be more
random than you really want it to be.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- References:
- Static Variables
- From: akhil.misra@xxxxxxxxx
- Re: Static Variables
- From: Richard Heathfield
- Re: Static Variables
- From: Flash Gordon
- Static Variables
- Prev by Date: Re: Static Variables
- Next by Date: Re: Static Variables
- Previous by thread: Re: Static Variables
- Next by thread: Re: Static Variables
- Index(es):
Relevant Pages
|