1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:21:21 -06:00
The Go programming language
Go to file
Russ Cox 0417aafe75 insert ODCL in type switch case.
needed for heap allocation if variable escapes.

package main
func main(){
	var i interface{} = 42;
	switch v := i.(type) {
	case int:
		println(&v, v);
	}
}

R=ken
OCL=31245
CL=31245
2009-07-06 23:42:57 -07:00
doc a few edits and simplifications. 2009-07-06 15:15:56 -07:00
include fix gotest by fixing nm -s to print in file order by storing a sequence number 2009-04-15 21:57:55 -07:00
lib tweak the newlines so the headers stand out better. 2009-06-22 14:18:23 -07:00
misc/xcode xcode config files, self-describing 2009-05-20 16:09:34 -07:00
pkg clear out pkg tree in clean.bash. 2009-05-20 11:12:05 -07:00
src insert ODCL in type switch case. 2009-07-06 23:42:57 -07:00
test allow conversion to interface type 2009-07-06 17:20:48 -07:00
usr - install gofmt in src/cmd/gofmt 2009-06-16 12:03:32 -07:00