[Issue 7279] Inconsistent overloading between arrays and scalars
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 23 04:48:57 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7279
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-23 04:48:55 PST ---
int[] is a value with mutable indirection, so copy conversion from immutable
int[] to int[] is invalid. Then the callings of f and g with arr are solved
with no ambiguous.
But, immutable int is a value without mutable indirection, so copy conversion
from immutable int to int is *valid*. Then callings of h makes ambiguous with
the two const-conversions, immutable int -> int and immutable int -> const int.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list