- 07 Jul, 2009 33 commits
-
-
Ian Lance Taylor authored
Please correct as needed. R=rsc,r DELTA=10 (4 added, 1 deleted, 5 changed) OCL=31305 CL=31305
-
Ian Lance Taylor authored
R=rsc DELTA=35 (0 added, 34 deleted, 1 changed) OCL=31301 CL=31303
-
Robert Griesemer authored
- fixed typo in parser.go - removed test w/ syntax errors from gofmt test script R=rsc DELTA=25 (21 added, 0 deleted, 4 changed) OCL=31296 CL=31298
-
Russ Cox authored
R=ken OCL=31295 CL=31295
-
Russ Cox authored
R=r DELTA=12 (0 added, 0 deleted, 12 changed) OCL=31240 CL=31290
-
Russ Cox authored
R=r DELTA=242 (68 added, 69 deleted, 105 changed) OCL=31239 CL=31289
-
Russ Cox authored
R=r DELTA=16 (3 added, 1 deleted, 12 changed) OCL=31121 CL=31288
-
Russ Cox authored
R=r DELTA=186 (55 added, 8 deleted, 123 changed) OCL=31117 CL=31287
-
Russ Cox authored
R=r DELTA=192 (52 added, 43 deleted, 97 changed) OCL=31116 CL=31286
-
Russ Cox authored
R=gri DELTA=2 (0 added, 0 deleted, 2 changed) OCL=31115 CL=31285
-
Russ Cox authored
R=gri DELTA=70 (7 added, 17 deleted, 46 changed) OCL=31113 CL=31283
-
Russ Cox authored
R=austin DELTA=3 (0 added, 0 deleted, 3 changed) OCL=31112 CL=31282
-
Russ Cox authored
R=r DELTA=208 (37 added, 63 deleted, 108 changed) OCL=31111 CL=31281
-
Russ Cox authored
tests to use new reflect interface. also make tests a real gotest. depends on CL 31107 R=r DELTA=582 (56 added, 194 deleted, 332 changed) OCL=31108 CL=31279
-
Russ Cox authored
R=ken OCL=31122 CL=31278
-
Russ Cox authored
in place of sigi, sigt. R=ken OCL=31118 CL=31277
-
Russ Cox authored
rename ntype.go and nvalue.go to type.go and value.go R=r DELTA=4295 (761 added, 2819 deleted, 715 changed) OCL=31238 CL=31276
-
Robert Griesemer authored
be independent of each other R=rsc DELTA=28 (28 added, 0 deleted, 0 changed) OCL=31271 CL=31273
-
Robert Griesemer authored
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=31270 CL=31272
-
Ian Lance Taylor authored
s.output.Data() was being retrieved before the synchronization point, which meant that it could be retrieved before the goroutine wrote it. Using gccgo this caused random errors. R=gri DELTA=2 (1 added, 0 deleted, 1 changed) OCL=31046 CL=31267
-
Russ Cox authored
and make 5c, 8c use them. centralizes reachability analysis and switch generation. now 8c doesn't have spurious warnings in pkg/runtime. R=ken OCL=31266 CL=31266
-
Robert Griesemer authored
Natural, Integer, and Rational numbers - added Value() methods to access small Natural and Integers as uint64 or int64 respectively, and to get the components of Rational numbers - fixed a bug with Integer creation - removed some _'s from names - added more comments in places - added test cases R=rsc DELTA=184 (127 added, 11 deleted, 46 changed) OCL=31210 CL=31265
-
Russ Cox authored
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
-
Russ Cox authored
x << "a" 1 << int(2) R=ken OCL=31244 CL=31244
-
Kai Backman authored
R=rsc APPROVED=rsc DELTA=46 (0 added, 5 deleted, 41 changed) OCL=31241 CL=31243
-
David Symonds authored
R=rsc APPROVED=rsc DELTA=32 (26 added, 4 deleted, 2 changed) OCL=31172 CL=31242
-
Russ Cox authored
* give genwrapper and genembedtramp the same signature. * move duint8, duint16, duint32, duint64, duintptr into gc. * tidy genwrapper. * bug involving struct field symbols in signature list. (hash-order dependent so hard to trigger) * new Type print format %#-T like %#T but omits names on function arguments. R=ken OCL=31237 CL=31237
-
Russ Cox authored
missing break after error. dot symbol bug fix: leave sym alone (was incorrect for inserted cross-package dots). R=ken OCL=31234 CL=31236
-
Russ Cox authored
for now, canSet stays. i will look into getting rid of it in a future CL. R=r DELTA=420 (419 added, 0 deleted, 1 changed) OCL=31231 CL=31235
-
Russ Cox authored
R=ken OCL=31233 CL=31233
-
Russ Cox authored
interface = (*int)(nil) is not the same as interface = nil. package main func main() { var x interface{} = (*int)(nil); println(x.(*int)); } R=ken OCL=31232 CL=31232
-
Russ Cox authored
R=ken OCL=31230 CL=31230
-
Russ Cox authored
when implicit assignment would have been okay. R=ken OCL=31225 CL=31227
-
- 06 Jul, 2009 7 commits
-
-
Russ Cox authored
package main func main() { var x interface {} = 42; switch x := x.(type) { case int: case foo: } } before: x.go:7: non-type case in type switch x.go:7: inappropriate case for a type switch now: x.go:7: foo: undefined R=ken OCL=31221 CL=31221
-
Russ Cox authored
R=r DELTA=179 (172 added, 6 deleted, 1 changed) OCL=31215 CL=31220
-
Russ Cox authored
package main func main() { var x interface{}; switch x { case 41: case "b": } } before: x.go:5: fatal error: exprcmp now: x.go:5: illegal types for operand: EQ interface { } int x.go:6: illegal types for operand: EQ interface { } string R=ken OCL=31217 CL=31219
-
Russ Cox authored
* use structs instead of interfaces * compiler lays out data structures ahead of time, so no more parsing of strings. * unified reflect data structures with interface runtime data structures. * richer data structures should enable reflection on chans and maps, but not implemented here. R=r,iant DELTA=1179 (1179 added, 0 deleted, 0 changed) OCL=31107 CL=31213
-
Rob Pike authored
R=rsc DELTA=248 (40 added, 108 deleted, 100 changed) OCL=31211 CL=31211
-
Robert Griesemer authored
- display: show '...' if a struct/interface has fields/methods removed; show struct/interface w/o {}'s if all fields/methods were removed; and show the {}'s if the struct/interface was empty to begin with R=rsc DELTA=41 (36 added, 0 deleted, 5 changed) OCL=31201 CL=31204
-
Rob Pike authored
R=rsc DELTA=4 (4 added, 0 deleted, 0 changed) OCL=31192 CL=31198
-