[Issue 7046] CTFE: append null does nothing
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 2 04:31:39 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7046
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-12-02 04:30:34 PST ---
Are we sure this isn't expected? I mean a null could mean a null string[], not
a null string.
string[] ret;
string[] a = null;
ret ~= a;
ret ~= a;
neither of these lines should do anything to ret, since they are empty arrays
of the same type.
I almost think the code in question should fail to compile for being too
ambiguous.
--
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