Python Front-end to GCC

Neil Cerutti neilc at norwich.edu
Tue Oct 22 13:37:30 EDT 2013


On 2013-10-22, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
> On Tue, 22 Oct 2013 16:53:07 +0000, Frank Miles wrote:
>
> [snip C code]
>> What you're missing is that arr[] is an automatic variable.  Put a
>> "static" in front of it, or move it outside the function (to become
>> global) and you'll see the difference.
>
> Ah, that makes sense. Thanks to everyone who corrected my 
> misunderstanding.
>
> Well, actually, no it doesn't. I wonder why C specifies such
> behaviour? Why would you want non-global arrays to be filled
> with garbage?

Fish(enc)ey.

-- 
Neil Cerutti



More information about the Python-list mailing list