Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-09-10 09:38:44


Victor A. Wagner, Jr. <vawjr_at_[hidden]> wrote in message
news:6.0.0.22.2.20030904092823.051f9db0_at_mail.rudbek.com...
> At Thursday 2003-09-04 07:49, you wrote:
> > > Hi Robert!
> > >
> > > I'm looking at the docs right now and so far it looks _far_ better than
> > anything I'v seen
> > > before.
> > > Congratulations!
> > >
> > > A small nit-pick:
> > >
> > > The pointer example uses a for-loop construct of the form:
> > >
> > > for(i = 0; i++ < 10;)
> > >
> > > unless there's some clause elsewhere, according to 5.4, the result of
> > the expression (i++ <
> >10)
> > > is unspecified (there's no sequence point between the operators)
> > >
> >Sorry... I thought these operators had the same precedence, but ++ has
> >higher precedence so it
> >comes first.
>
> one of us is clearly missing something ..... when the ++ happens is
> irrelevant i++ has a _value_ of i BEFORE the ++.
>
yea, yea... I was having a brain surgery when I wrote all this :-)

Fernando Cacciola


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