[Issue 14186] Silent syntax change from C and C++
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 15 09:06:50 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=14186
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nick at geany.org
Resolution|--- |DUPLICATE
--- Comment #8 from Nick Treleaven <nick at geany.org> ---
(In reply to ag0aep6g from comment #1)
> int b = 1, c = 1;
> 1 ? b : c = 0;
The quoted code is now deprecated:
Deprecation: `1 ? b : c` must be surrounded by parentheses when next to
operator `=`
*** This issue has been marked as a duplicate of issue 18743 ***
--
More information about the Digitalmars-d-bugs
mailing list