digitalmars.D.bugs - volatile inconsistency
- The Dr ... who? (9/9) Jun 11 2004 for(int i = 0; i < 10000000; )
- Walter (4/13) Jul 06 2004 That's correct. Volatile is the start of a statement, the third part of ...
for(int i = 0; i < 10000000; )
{
volatile ++i;
}
is legal
for(int i = 0; i < 10000000; volatile ++i)
{
}
is not
Jun 11 2004
"The Dr ... who?" <matthew.hat stlsoft.dot.org> wrote in message
news:cae9ab$12md$1 digitaldaemon.com...
for(int i = 0; i < 10000000; )
{
volatile ++i;
}
is legal
for(int i = 0; i < 10000000; volatile ++i)
{
}
is not
That's correct. Volatile is the start of a statement, the third part of a
for statement is an expression, not a statement.
Jul 06 2004








"Walter" <newshound digitalmars.com>