[Cython] C -- Variable-sized array on stack?
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Thu Apr 30 21:39:56 CEST 2009
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.
Sure, I'm convinced not to use it now.
--
Dag Sverre
More information about the Cython-dev
mailing list