Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflect: ArrayOf #5996

Closed
PieterD opened this issue Jul 31, 2013 · 8 comments
Closed

reflect: ArrayOf #5996

PieterD opened this issue Jul 31, 2013 · 8 comments
Milestone

Comments

@PieterD
Copy link
Contributor

PieterD commented Jul 31, 2013

Though I rarely find myself using arrays directly, there is a distinct absence of
ArrayOf() in the reflect library. I'm thinking of something like:

func ArrayOf(t Type, n int) Type
@rsc
Copy link
Contributor

rsc commented Jul 31, 2013

Comment 1:

ArrayOf is nearly entirely implemented in package reflect, where it is currently named
arrayOf. We won't finish it for Go 1.2 but maybe for Go 1.3.

Labels changed: added priority-later, go1.3maybe, removed priority-triage, go1.2maybe.

Owner changed to @rsc.

Status changed to Started.

@robpike
Copy link
Contributor

robpike commented Aug 20, 2013

Comment 2:

Labels changed: removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 3:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 4:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 5:

Labels changed: added repo-main.

@ianlancetaylor
Copy link
Contributor

Comment 6:

Issue #7239 has been merged into this issue.

@gopherbot
Copy link
Contributor

Comment 7:

CL https://golang.org/cl/101330055 mentions this issue.

sbinet added a commit to sbinet/golang-go that referenced this issue Feb 9, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 11, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 12, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 19, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 23, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 23, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 25, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Feb 26, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Mar 15, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Mar 15, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, knowing the element reflect.Type.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
@bradfitz bradfitz added this to the Go1.5Maybe milestone Apr 2, 2015
@bradfitz
Copy link
Contributor

bradfitz commented Apr 2, 2015

Pending CL is at https://go-review.googlesource.com/#/c/4111/5

sbinet added a commit to sbinet/golang-go that referenced this issue Apr 7, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 10, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 11, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 13, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 17, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 17, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 17, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 17, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect,runtime: expose runtime.algarray to reflect
- reflect: tests for ArrayOf

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
sbinet added a commit to sbinet/golang-go that referenced this issue Apr 21, 2015
This change exposes reflect.ArrayOf to create new reflect.Type array
types at runtime, when given a reflect.Type element.

- reflect: implement ArrayOf
- reflect: tests for ArrayOf
- runtime: document that typeAlg is used by reflect and must be kept in
  synchronized

Fixes golang#5996.

Change-Id: I5d07213364ca915c25612deea390507c19461758
@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe May 15, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants