Feature request: array stuff
Fawzi Mohamed
fmohamed at mac.com
Thu May 8 09:38:34 PDT 2008
On 2008-05-08 16:18:04 +0200, "Janice Caron" <caron800 at googlemail.com> said:
> 2008/5/8 Koroskin Denis <2korden at gmail.com>:
>> That's not a dynamic allocation, i.e. you cannot do like this:
>>
>> void foo(int i)
>> {
>> int[i] array;
>> }
>>
>> And I don't know of any language, that could do that.
>
> C99.
>
> http://www.comeaucomputing.com/techtalk/c99/#variablelengtharrays
also fortran can do this :)
Indeed it can be useful.
An ugly side effect is that then the stack can grow a lot and you hit
the default ulimit (ifort does it).
More information about the Digitalmars-d
mailing list