]> Cypherpunks repositories - gostls13.git/commit
change type names to go live at the name, so that
authorRuss Cox <rsc@golang.org>
Mon, 6 Oct 2008 23:44:17 +0000 (16:44 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 6 Oct 2008 23:44:17 +0000 (16:44 -0700)
commit74e2e087e25dcbd5828cd1bf436e5ef74c1e009c
treead3bc97650aa258d27d9187800c07d45f3661920
parent717de79976f2b8675cbba4dea01b092a351ecbe7
change type names to go live at the name, so that

type T struct {
next *T
}

and

type T *struct {
next T
}

are valid without needing forward declarations.

add "type T struct" syntax for forward struct declarations.

add "type T interface" syntax, but commented out
(need to fix semicolons first)

R=ken
DELTA=452  (259 added, 115 deleted, 78 changed)
OCL=16580
CL=16584
src/cmd/6g/align.c
src/cmd/6g/cgen.c
src/cmd/6g/gen.c
src/cmd/gc/dcl.c
src/cmd/gc/export.c
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/subr.c
src/cmd/gc/walk.c
test/fixedbugs/bug094.go [moved from test/bugs/bug094.go with 100% similarity]
test/golden.out