[Issue 12757] Refused fixed size array literal function argument
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 17 01:25:58 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12757
--- Comment #3 from yebblies <yebblies at gmail.com> ---
(In reply to bearophile_hugs from comment #2)
> (In reply to yebblies from comment #1)
> > That's not an array literal, that's either an array initializer or an
> > associative array literal, depending on context. You can't use an array
> > initializer except when initializing a variable.
>
> I see. So is this request INVALID and to be closed?
Either that or turn it into an enhancement to allow array initializers to be
used in any array-accepting context instead of just assignment.
--
More information about the Digitalmars-d-bugs
mailing list