I have implemented DIP1039 - Static Arrays with Inferred Length

Nick Treleaven nick at geany.org
Fri Feb 27 11:24:03 UTC 2026


On Friday, 27 February 2026 at 11:19:15 UTC, Nick Treleaven wrote:
> - Doesn't work as an expression - except `(){ int[$] arr = [1, 
> 2, 3]; return arr; }()`, which is no better than 
> `imported!std.array.staticArray!int(1, 2, 3)`.

Sorry, `imported!std.array.staticArray!int([1, 2, 3])`.


More information about the Digitalmars-d mailing list