From ec9b0428f8a20fa2f3b15d0abf56f69583d0ab56 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 9 Jul 2009 16:44:13 -0700 Subject: [PATCH] various spec tunings R=gri DELTA=6 (0 added, 1 deleted, 5 changed) OCL=31415 CL=31419 --- doc/go_spec.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index ef39535d6f..d491db65f0 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2436,8 +2436,8 @@ The operand types in binary operations must be compatible, with the following ex an ideal number, the ideal number is converted to match the type of the other operand (§Expressions). -
  • If both operands are ideal numbers, the conversion is to ideal floats - if one of the operands is an ideal float +
  • Except in shift expressions, if both operands are ideal numbers and one is an + ideal float, the other is converted to ideal float (relevant for / and %).
  • The right operand in a shift operation must be always be of unsigned integer type @@ -2452,11 +2452,10 @@ The operand types in binary operations must be compatible, with the following ex

    -Unary operators have the highest precedence. They are evaluated from -right to left. As the ++ and -- operators form +Unary operators have the highest precedence. +As the ++ and -- operators form statements, not expressions, they fall -outside the unary operator hierarchy and apply -to the operand on the left. +outside the operator hierarchy. As a consequence, statement *p++ is the same as (*p)++.

    There are six precedence levels for binary operators. -- 2.48.1