Re: Associativity of unary operators

From: Date: Wed, 28 Jul 2004 21:04:49 +0000
Subject: Re: Associativity of unary operators
References: 1  Groups: php.doc php.internals 
Request: Send a blank email to phpdoc+get-969362341@lists.php.net to get a copy of this message
You'd probably better ask this on the development list (cc-ed). Goba Jakub Vrana írta:
I'm not a formal languages expert but I wonder how can unary operator be associative. It also seems that ++ and -- have higher priority than the rest of unary operators listed on one line. I also don't understand why "print" is listed among operators. Do you object against this patch? RCS file: /repository/phpdoc/en/language/operators.xml,v retrieving revision 1.76 diff -u -r1.76 operators.xml
--- operators.xml       27 Jul 2004 21:30:24 -0000      1.76
+++ operators.xml       28 Jul 2004 08:52:09 -0000
@@ -61,8 +61,12 @@
         <entry>[</entry>
        </row>
        <row>
-        <entry>right</entry>
-        <entry>! ~ - ++ -- (int) (float) (string) (array) (object) @</entry>
+        <entry>non-associative</entry>
+        <entry>++ --</entry>
+       </row>
+       <row>
+        <entry>non-associative</entry>
+        <entry>! ~ - (int) (float) (string) (array) (object) @</entry>
        </row>
        <row>
         <entry>left</entry>
@@ -115,10 +119,6 @@
         </entry>
        </row>
        <row>
-        <entry>right</entry>
-        <entry>print</entry>
-       </row>
-       <row>
         <entry>left</entry>
         <entry>and</entry>
        </row>


« previous php.doc (#969362341) next »