Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-05-10 15:14:54


"Eric Niebler" <eric_at_[hidden]> wrote in message
news:428102C3.8060502_at_boost-consulting.com...

| But users might reasonably expect this:
|
| int i = 0;
| for( i : vect )
| {
| }
| // maybe use i here
|
| to use the pre-declared i as a loop variable instead of introducing a
| new variable. That's an important use case, and some allowance should be
| made for it in the chosen syntax.

can you show some important examples?

often, making something "good" at two things makes it bad at both. The new
for-loop is supposed to do one thing
really well.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk