Date: 08/07/00
- Next message: Jesus Castagnetto: "Re: [PHP-DOC] rawurldecode, rawurldecode, TODO"
- Previous message: Hojtsy Gabor: "[PHP-DOC] cvs: phpdoc /en/language operators.xml"
- In reply to: Hojtsy Gabor: "[PHP-DOC] bug with precedences?"
- Next in thread: Jesus Castagnetto: "Re: [PHP-DOC] bug with precedences?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The online manual is correct. Jesus got it wrong.
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>]
> _________________________________________________________________________
> The starting-point for hungarian webmasters - http://weblabor.hu/
> PHP Manual hungarian translation [under const.] - http://weblabor.hu/php/
>
>
>
- Next message: Jesus Castagnetto: "Re: [PHP-DOC] rawurldecode, rawurldecode, TODO"
- Previous message: Hojtsy Gabor: "[PHP-DOC] cvs: phpdoc /en/language operators.xml"
- In reply to: Hojtsy Gabor: "[PHP-DOC] bug with precedences?"
- Next in thread: Jesus Castagnetto: "Re: [PHP-DOC] bug with precedences?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

