Hello Sergey,

Thu, 19 Mar 2009 06:35:37 -0400, Steve Teale wrote:

for (; a<b; a++);

is illegal in D.

Doesn't this break a lot of C and C++ code?

for (; a<b; a++) {}

is legal.  I don't think that an empty statement after for is used in
"a lot of code."


it's a trivial fix and easy to find. Heck, you hardly need to think!


Reply via email to