[Issue 12757] Refused fixed size array literal function argument
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun May 18 01:39:52 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12757
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |4703
Severity|normal |enhancement
--- Comment #5 from bearophile_hugs at eml.cc ---
(In reply to yebblies from comment #4)
> If this was implemented, this call would become ambiguous.
>
> void foo(int[1]) {}
> void foo(int[int]) {}
>
> void main()
> {
> foo([0 : 1]);
> }
Right. And adding more ambiguous code to D is not a good idea.
Walter doesn't seem in a rush to find a fix for my Issue 4703 that is almost
four years old. If some kind of fix for issue 4703 is ever found and accepted,
then this enhancement request becomes acceptable.
So I tag this as enhancement request that depends on Issue 4703 .
--
More information about the Digitalmars-d-bugs
mailing list