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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sun Jul 17 17:57:04 UTC 2022


On Sunday, 17 July 2022 at 16:33:29 UTC, Nick Treleaven wrote:
> ```d
> auto sa = $[1,2,3,4];
> ```

Maybe choose something that is consistent with other literals, 
the type is generally a suffix:

"hello"c  // string
"hello"w  // wstring
"hello"d  // dstring
12345UL




More information about the Digitalmars-d mailing list