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

P3451 R0 A Suggestion for Reflection Access Control #2114

Open
wg21bot opened this issue Oct 17, 2024 · 2 comments
Open

P3451 R0 A Suggestion for Reflection Access Control #2114

wg21bot opened this issue Oct 17, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Oct 17, 2024

P3451R0 A Suggestion for Reflection Access Control (Barry Revzin)

@wg21bot wg21bot added the EWG Evolution label Oct 17, 2024
@wg21bot wg21bot added this to the 2024-telecon milestone Oct 17, 2024
@jfbastien jfbastien added reflection SG7 Reflection and removed EWG Evolution labels Oct 18, 2024
@brevzin brevzin self-assigned this Oct 18, 2024
@hanickadot hanickadot added EWG Evolution and removed EWG Evolution labels Nov 3, 2024
@hanickadot
Copy link
Collaborator

We discussed group of papers about accessibility together in Wrocław:

P3437R0 Proposed default principles: Reflect C++, Generate C++ (github)
P3451R0 A Suggestion for Reflection Access Control (github)
P3473R0 Splicing Should Respect Access Control (github)
P3493R0 Ruminations on reflection and access (late paper, no github yet)

And we took these pools:

SG7: P2996 should allow access to private and protected members as currently is (for both reflection by member interspection and splicing).

SF F N A SA
4 13 4 1 5

Result: Consensus

SG7: We encourage work towards ability to query accessible members based on provided context (as a high-priority change for C++26)

SF F N A SA
11 9 6 1 0

Result: Strong consensus

SG7: Adopt "as-if source code read/written by the human programmer" as SG7 guidance for default reflection and generation semantics.

SF F N A SA
4 11 8 3 0

Result: Consensus

@jfbastien
Copy link
Collaborator

Seen in EWG on Wednesday:

Poll: Access to inaccessible members using reflection shall use inconvenient spelling (e.g. private members are accessible through silly_members_of, not members_of)

SF F N A SA
12 8 5 8 3

Result: not consensus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants