On 3/1/06, Skip Tavakkolian <[EMAIL PROTECTED]> wrote:
> >> when it was added to C++, i "felt" that the scope
> >> of 'i' wasn't natural; it goes beyond 'for's closure.
> >> i like a behavior like this:
> >>
> >> { int i; for (i = 0, ...) ...; }
> >
> > so did the c++ standards committee and the c99 committee.
> > both have declared that
> >
> > for (int i = 0; i < 10; i++);
> >
> > now means
> >
> > { int i; for(i=0; i<10; i++); }
>
> i didn't know. wow?!
> my vc6 is officially an antique.
>
>
VC *anything* should not be seen as an implementation of any standards :).
I've heard the .NET stuff is better but they've added a ton of
extensions to "managed C++" that really isn't C++ anymore.
In fact I was told they were lobbying to get that stuff into the
standard but Bjarne isn't favorable to language changes that he thinks
could be solved in libraries.
Dave