Dag Sverre Seljebotn wrote:
> Jason Evans wrote:
>> Dag Sverre Seljebotn wrote:
>>> Will I get away with code like this in Cython?
>>>
>>> void foo(int n) {
>>> int stack[n];
>>> ...
>>> }
>>>
>>> I.e. what C language level are we targeting exactly? Also, does the
>>> above cause a proper stack allocation?
>> I think this is a C99 feature that happens to be part of gnu89 as well.
>> I seem to recall that MSVC++ does not support the feature, which is an
>> important consideration here.
And MSVC did that not in order to spite everyone, but because it opens a
giant can of worms including security issues. At 23C3 I saw a demo on
how this "feature" can be used to do many bad, bad things with gcc since
it did not do any checking at all if the stack was large enough, etc.
> Sure, I'm convinced not to use it now.
Good :)
Cheers,
Michael
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev