Re: Globals vs. Locals
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Globals vs. Locals
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2005年8月05日 16:32:06 -0300
> so there's no "automatic global" there at all.
I did not say there was automatic globals. What I meant was this: When
you see a function like
int foo () { a = 1; }
in C, C++, C#, Pascal, Objective Pascal, Ada, Java, Scheme, Lisp (and a
lot of other languages), do you think that "a" is local to the function?
Or does it look more like a global (that is, external to the function)?
-- Roberto