auto arr = [1, 2, 3] should be a static array, not a GC allocated array

Mike Parker aldacron at gmail.com
Mon Jul 18 01:25:38 UTC 2022


On Sunday, 17 July 2022 at 16:33:29 UTC, Nick Treleaven wrote:
>
> literally mean "length array", i.e. fixed length array. (Why do 
> we overload the word 'static' here for arrays?)

It's fairly common terminology. I couldn't tell you when it first 
came into usage, but it's used to describe fixed-length arrays in 
multiple languages.


More information about the Digitalmars-d mailing list