CAlive will introduce the
f++ and
f-- blocks, auto-incrementing and auto-decrementing
for {..} block based on the initialization variable. It will only have
init and
test components for readability.
// Standard loop
for (i = 0, j = 10; i < 10; ++i, ++j)
{
// Code here
}
// Using for++ (Note: Single test variables are implied to be auto-initializing to 0)
// If the initializer is specified, it is honored
f++ (i, j = 10; i < 10)
{
// Code here
}
// Similar syntax for f--, but if the initializer is specified it is honored
f-- (i = 9; i >= 0)
{
// Code here
}
--
Rick C. Hodgin