[Issue 10862] Assignment inside if condition still sometimes accepted
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 21 03:48:45 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10862
--- Comment #11 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-21 03:48:27 PDT ---
(In reply to comment #10)
> it takes up additional space, so I never do it in my code.
I'm baffled by this, you say it wastes spaces, yet look at how much space
you're wasting in std.datetime:
void _assertPred(string op, L, R)
(L lhs, R rhs, lazy string msg = null, string file = __FILE__,
size_t line = __LINE__)
if((op == "<" ||
op == "<=" ||
op == "==" ||
op == "!=" ||
op == ">=" ||
op == ">") &&
You've saved one character and wasted 5 lines for a predicate, in a module that
reaches 34000 lines.
--
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