[Issue 5074] array(immutable(int)[]) ==> int[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 19 16:14:21 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=5074
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #5 from Peter Alexander <peter.alexander.au at gmail.com> 2014-03-19 16:14:14 PDT ---
(In reply to comment #4)
> However, this would be a change of behavior, which may or may not be an
> improvement, and may or may not break code.
It will break code.
immutable(int)[] a = ...;
immutable(int)[] b = array(a);
This breaks if array returns int[].
I propose this is closed. array is one of the most commonly used functions in
Phobos; I really can't see an API change for it ever happening -- especially
one that is of debatable value.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list