Date: 08/07/00
- Next message: Sascha Schumann: "[PHP-DOC] WDDX version change 0.9 -> 1.0"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DOC] Fancy manual online in 4 languages now"
- Maybe in reply to: Hojtsy Gabor: "[PHP-DOC] bug with precedences?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
One more errata :-)
Quoting Rasmus Lerdorf <rasmus <email protected>>:
> The online manual is correct. Jesus got it wrong.
Ehem, it is nice to have my name mentioned, but that wasn't one of my
chapters. Although I am guilty of not reading carefully and spotting
that mistake before (old age is catching up with my attention span I
guess)
Tnxs to Hojtsy and Rasmus.
--- Jesus M. Castagnetto
> Look at language-parser.y in PHP 3 where you will find:
>
> %left '=' PLUS_EQUAL MINUS_EQUAL MUL_EQUAL DIV_EQUAL CONCAT_EQUAL
MOD_EQUAL
> AND_EQUAL OR_EQUAL XOR_EQUAL SHIFT_LEFT_EQUAL SHIFT_RIGHT_EQUAL
>
> And zend-parser.y where you will find:
>
> %left '=' T_PLUS_EQUAL T_MINUS_EQUAL T_MUL_EQUAL T_DIV_EQUAL
T_CONCAT_EQUAL
> T_MOD_EQUAL T_AND_EQUAL T_OR_EQUAL T_XOR_EQUAL T_SL_EQUAL T_SR_EQUAL
>
> -Rasmus
>
> On Mon, 7 Aug 2000, Hojtsy Gabor wrote:
>
> > Hi!
> >
> > I am holding Jesus' book now (actually it is on my desk :),
> > and seeing some inconsistencies with the precedences.
> >
> > Jesus writes:
> >
> > = += -= ... operators are right associative
> > this is also the case for the ?: operator.
> >
> > In the manual, these are left associative...
> >
> > Also in his book the precendence establishment
> > operator () is mentioned with the highest precedence...
> > This could be included in the manual...
> >
> > The [ operator is actually [] isn't it?
> >
> > Hi,
> > Hojtsy Gabor [also goba <email protected>]
> >
-------------------------------------------------
Created by Zkey.com - http://www.zkey.com
Awarded PCMagazine's Editors' Choice
- Next message: Sascha Schumann: "[PHP-DOC] WDDX version change 0.9 -> 1.0"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DOC] Fancy manual online in 4 languages now"
- Maybe in reply to: Hojtsy Gabor: "[PHP-DOC] bug with precedences?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

