inferred size for static array initialization

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 18 03:35:44 PDT 2016


On Monday, 2 May 2016 at 17:43:56 UTC, Namespace wrote:
> immutable auto a  = [1,2,3].s;

Will that have zero run-time overhead compared to:

     immutable int[3] a = [1,2,3];

?


More information about the Digitalmars-d-learn mailing list