[Issue 6930] combined type of immutable(T) and inout(T) should be inout(const(T))
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 10 11:14:08 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6930
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-11-10 11:13:29 PST ---
I'm not seeing a good use case here.
Can't you just do:
return condition ? x : new inout(int[])(2);
--
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