com php-langspec: Use variable in RHS of byref-assignment: spec/10-expressions.md spec/19-grammar.md

From: Date: Tue, 19 Sep 2017 03:51:56 +0000
Subject: com php-langspec: Use variable in RHS of byref-assignment: spec/10-expressions.md spec/19-grammar.md
Groups: php.standards.cvs 
Request: Send a blank email to standards--cvs+get-387@lists.php.net to get a copy of this message
Commit: 4b8e976b52c339a0436ca6c0120c6cdf07c52106 Author: Nikita Popov <nikic@php.net> Tue, 19 Sep 2017 05:49:31 +0200 Parents: 8082f0911ad18da427d2920599d06a1a0632edbc Branches: master Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=4b8e976b52c339a0436ca6c0120c6cdf07c52106 Log: Use variable in RHS of byref-assignment Changed paths: M spec/10-expressions.md M spec/19-grammar..md Diff: diff --git a/spec/10-expressions.md b/spec/10-expressions.md index e99a4a3..c29629f 100644 --- a/spec/10-expressions.md +++ b/spec/10-expressions.md @@ -3116,18 +3116,18 @@ $a = new C; // make $a point to the allocated object <!-- GRAMMAR byref-assignment-expression: - variable '=' '&' assignment-expression + variable '=' '&' variable --> <pre> <i id="grammar-byref-assignment-expression">byref-assignment-expression:</i> - <i><a href="#grammar-variable">variable</a></i> = &amp; <i><a href="#grammar-assignment-expression">assignment-expression</a></i> + <i><a href="#grammar-variable">variable</a></i> = &amp; <i><a href="#grammar-variable">variable</a></i> </pre> **Constraints** -*assignment-expression* must be an lvalue or a call to a function that -returns a value byRef. +The right-hand-side *variable* must be an lvalue or a call to a function +that returns a value byRef. **Semantics** diff --git a/spec/19-grammar.md b/spec/19-grammar.md index 6f17c92..0cc0a9a 100644 --- a/spec/19-grammar.md +++ b/spec/19-grammar.md @@ -673,7 +673,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md# <i><a href="#grammar-list-intrinsic">list-intrinsic</a></i> = <i><a href="#grammar-assignment-expression">assignment-expression</a></i> <i id="grammar-byref-assignment-expression">byref-assignment-expression:</i> - <i><a href="#grammar-variable">variable</a></i> = &amp; <i><a href="#grammar-assignment-expression">assignment-expression</a></i> + <i><a href="#grammar-variable">variable</a></i> = &amp; <i><a href="#grammar-variable">variable</a></i> <i id="grammar-compound-assignment-expression">compound-assignment-expression:</i> <i><a href="#grammar-variable">variable</a></i> <i><a href="#grammar-compound-assignment-operator">compound-assignment-operator</a></i> <i><a href="#grammar-assignment-expression">assignment-expression</a></i>

« previous php.standards.cvs (#387) next »