From 1593ab6bb4d5bf59bed1d66f292992572555b999 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 16 Jan 2009 15:36:46 -0800 Subject: [PATCH] - cleanup todo list - fixed language for arrays slightly R=r DELTA=81 (39 added, 25 deleted, 17 changed) OCL=23000 CL=23000 --- doc/go_spec.txt | 98 ++++++++++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 42 deletions(-) diff --git a/doc/go_spec.txt b/doc/go_spec.txt index b78d81c5c3..aa82a07e10 100644 --- a/doc/go_spec.txt +++ b/doc/go_spec.txt @@ -18,18 +18,21 @@ Any part may change substantially as design progresses. ---- @@ -1173,10 +1187,10 @@ The length of arrays is known at compile-time, and the result of a call to [2*N] struct { x, y int32 } [1000]*float64 -Assignment compatibility: Arrays can be assigned to slice variables of -equal element type; arrays cannot be assigned to other array variables -or passed to functions (by value). -TODO rethink this restriction. Causes irregularities. +Assignment compatibility: Arrays can be assigned to variables of equal type +and to slice variables with equal element type. When assigning to a slice +variable, the array is not copied but a slice comprising the entire array +is created. Struct types -- 2.48.1