diff options
author | Robert Griesemer <gri@golang.org> | 2010-05-27 17:23:25 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-05-27 17:23:25 -0700 |
commit | a014bb548c9edab6ac8dd74b56e81433115811b1 (patch) | |
tree | d2987cdf6376f41e9dea2e67d9c4dd4c1837168d /doc/go_spec.html | |
parent | ba7b236fe5897c8eb604717942fc6f22856e4b6f (diff) | |
download | golang-a014bb548c9edab6ac8dd74b56e81433115811b1.tar.gz |
go spec: Disallow &a notation to obtain a slice
from an array; one needs to write a[0:] instead.
R=rsc, r, iant, ken2
CC=golang-dev
http://codereview.appspot.com/1365041
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r-- | doc/go_spec.html | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index aad1f34dd..d5b4af698 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ <!-- title The Go Programming Language Specification --> -<!-- subtitle Version of May 24, 2010 --> +<!-- subtitle Version of May 26, 2010 --> <!-- Todo @@ -1344,12 +1344,6 @@ with a type <code>T</code> if one or more of the following conditions applies: <code>V</code> <a href="#Interface_types">implements</a> <code>T</code>. </li> <li> -<code>V</code> is a pointer to an array and <code>T</code> is a slice type -with compatible element type and at least one of <code>V</code> or <code>T</code> is unnamed. -After assignment, the slice variable refers to the original array; the elements are not -copied. -</li> -<li> <code>V</code> is a bidirectional channel and <code>T</code> is a channel type with compatible element type and at least one of <code>V</code> or <code>T</code> is unnamed. </li> |