On Wed, 1 Mar 2006, David Leimbach wrote:
: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 :).
:
As a person who's done porting of embedded systems between compilers and
just working with VC, gcc, icc, et al, in general, I couldn't agree more!
$0.02
Andrew
--
[EMAIL PROTECTED]