]> Cypherpunks.ru repositories - gostls13.git/commit
code changes for array conversion.
authorRuss Cox <rsc@golang.org>
Thu, 16 Apr 2009 03:27:45 +0000 (20:27 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 16 Apr 2009 03:27:45 +0000 (20:27 -0700)
commit60ce95d7a1677d98ca098a3657e00d71b6021a30
tree16cfcc3cc7d82aa01da1b152e520297da5afc88a
parent65d397f747f565cbea57dd40f4f838bbab803243
code changes for array conversion.
as a reminder, the old conversion
was that you could write

var arr [10]byte;
var slice []byte;
slice = arr;

but now you have to write

slice = &arr;

the change eliminates an implicit &, so that
the only implicit &s left are in the . operator
and in string(arr).

also, removed utf8.EncodeRuneToString
in favor of string(rune).

R=r
DELTA=83  (1 added, 23 deleted, 59 changed)
OCL=27531
CL=27534
25 files changed:
doc/progs/cat.go
doc/progs/cat_rot13.go
doc/progs/sum.go
src/lib/exec.go
src/lib/exec_test.go
src/lib/go/scanner.go
src/lib/hash/md5.go
src/lib/hash/sha1.go
src/lib/http/fs.go
src/lib/io/pipe_test.go
src/lib/net/fd.go
src/lib/net/fd_darwin.go
src/lib/net/tcpserver_test.go
src/lib/net/timeout_test.go
src/lib/os/os_test.go
src/lib/sort_test.go
src/lib/tabwriter/tabwriter.go
src/lib/utf8.go
src/lib/utf8_test.go
test/fixedbugs/bug045.go
test/fixedbugs/bug059.go
test/ken/array.go
test/ken/rob2.go
usr/gri/pretty/platform.go
usr/gri/pretty/utils.go