auto arr = [1, 2, 3] should be a static array, not a GC allocated array
Dave P.
dave287091 at gmail.com
Thu Jul 14 17:27:18 UTC 2022
On Thursday, 14 July 2022 at 16:50:40 UTC, jfondren wrote:
> On Thursday, 14 July 2022 at 15:26:44 UTC, Dave P. wrote:
>> Similar syntax in C is for a static array of inferred length:
>>
>> ```C
>> int arr[] = {1,2,3};
>> ```
>
> ehh, isn't that a C99 feature? I'm still waiting for compilers
> to support it.
>
It’s a C89 feature, it’s in my copy of The C Programming language.
More information about the Digitalmars-d
mailing list