[Issue 3005] ill-defined for statement
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 17 15:14:36 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3005
BCS <shro8822 at vandals.uidaho.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shro8822 at vandals.uidaho.edu
--- Comment #1 from BCS <shro8822 at vandals.uidaho.edu> 2009-05-17 15:14:35 PDT ---
That's been known for some time. It's done that way to allow this to work:
for(int a = 5; a < 10; a++) {}
----[statment]
I think the best "fix" would be to switch from a statement, to allowing an
expression or declaration.
OTOH I'm fine with it as it is as it doesn't cause any known problems with
"reasonable" code.
--
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