From e6626dafa8de8a0efae351e85cf96f0c683e0a4f Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 6 Mar 2008 23:06:05 -0800 Subject: [PATCH] - get rid of Designator terminology SVN=111696 --- doc/go_lang.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/go_lang.txt b/doc/go_lang.txt index 9077478b39..ac7b12d7d1 100644 --- a/doc/go_lang.txt +++ b/doc/go_lang.txt @@ -1137,13 +1137,14 @@ Assignments ---- Assignment = SingleAssignment | TupleAssignment | Send . - SimpleAssignment = Designator assign_op Expression . - TupleAssignment = DesignatorList assign_op ExpressionList . + SingleAssignment = PrimaryExpr assign_op Expression . + TupleAssignment = PrimaryExprList assign_op ExpressionList . + PrimaryExprList = PrimaryExpr { "," PrimaryExpr } . Send = '>' Expression '=' Expression . assign_op = [ add_op | mul_op ] '=' . -The designator must be an l-value such as a variable, pointer indirection, +The left-hand side must be an l-value such as a variable, pointer indirection, or an array indexing. x = 1 @@ -1189,7 +1190,7 @@ must denote a channel pointer value. >chan_ptr = value -In assignments, the type of the expression must match the type of the designator. +In assignments, the type of the expression must match the type of the left-hand side. Go statements