Array literals are weird.

evilrat evilrat666 at gmail.com
Sat May 1 12:29:36 UTC 2021


On Saturday, 1 May 2021 at 12:27:07 UTC, Adam D. Ruppe wrote:
> On Saturday, 1 May 2021 at 12:22:50 UTC, evilrat wrote:
>> Is there one in Phobos?
>
> http://dpldocs.info/staticArray
>
>
> i haven't tested with -betterC restrictions but i don't see any 
> reason why it wouldn't work there

Wow, I see. It uses templates to deduce type and length as 
parameters.


More information about the Digitalmars-d mailing list