mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
remove the "open" concept from reflect and go with slices and arrays.
the two still share an interface and Kind; that's probably ok but might be worth revisiting. R=rsc DELTA=74 (1 added, 8 deleted, 65 changed) OCL=23416 CL=23418
This commit is contained in:
parent
88da39feea
commit
9a7332fb5b
5 changed files with 49 additions and 56 deletions
|
|
@ -270,7 +270,7 @@ func TestAll(tt *testing.T) { // TODO(r): wrap up better
|
|||
assert(typ.String(), "[]uint32");
|
||||
|
||||
t = reflect.ParseTypeString("", "[]int32");
|
||||
v := reflect.NewOpenArrayValue(t, 5, 10);
|
||||
v := reflect.NewSliceValue(t, 5, 10);
|
||||
t1 := reflect.ParseTypeString("", "*[]int32");
|
||||
v1 := reflect.NewInitValue(t1);
|
||||
if v1 == nil { panic("V1 is nil"); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue