From c072558b90f1bbedc2022b0f30c8b1ac4712538e Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Fri, 18 Feb 2011 09:50:58 +0100 Subject: Imported Upstream version 2011.02.15 --- doc/go_spec.html | 211 ++++++++++++++++++------------------------------------- 1 file changed, 67 insertions(+), 144 deletions(-) (limited to 'doc/go_spec.html') diff --git a/doc/go_spec.html b/doc/go_spec.html index 4e5d9c639..a95ed704a 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ - +

Bootstrapping

@@ -5064,8 +4991,12 @@ The importing of packages, by construction, guarantees that there can be no cyclic dependencies in initialization.

-A complete program, possibly created by linking multiple packages, -must have one package called main, with a function +A complete program is created by linking a single, unimported package +called the main package with all the packages it imports, transitively. +The main package must +have package name main and +declare a function main that takes no +arguments and returns no value.

@@ -5073,20 +5004,12 @@ func main() { ... }
 

-defined. -The function main.main() takes no arguments and returns no value. -

-

-Program execution begins by initializing the main package and then -invoking main.main(). -

-

-When main.main() returns, the program exits. It does not wait for -other (non-main) goroutines to complete. +Program execution begins by initializing the main package and then +invoking the function main.

-Implementation restriction: The compiler assumes package main -is not imported by any other package. +When the function main returns, the program exits. +It does not wait for other (non-main) goroutines to complete.

Run-time panics

@@ -5133,8 +5056,8 @@ func Alignof(variable ArbitraryType) int func Offsetof(selector ArbitraryType) int func Sizeof(variable ArbitraryType) int -func Reflect(val interface {}) (typ runtime.Type, addr uintptr) -func Typeof(val interface {}) reflect.Type +func Reflect(val interface{}) (typ runtime.Type, addr uintptr) +func Typeof(val interface{}) (typ interface{}) func Unreflect(typ runtime.Type, addr uintptr) interface{} -- cgit v1.2.3