Skip to content

P3451 R0 A Suggestion for Reflection Access Control #2114

Closed
@wg21bot

Description

@wg21bot
Collaborator

P3451R0 A Suggestion for Reflection Access Control (Barry Revzin)

Activity

added this to the 2024-telecon milestone on Oct 17, 2024
added
SG7Reflection
and removed
EWGEvolution
on Oct 18, 2024
self-assigned this
on Oct 18, 2024
added
EWGEvolution
and removed
EWGEvolution
on Nov 3, 2024
hanickadot

hanickadot commented on Nov 18, 2024

@hanickadot
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

jfbastien commented on Nov 20, 2024

@jfbastien
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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @jfbastien@hanickadot@brevzin@jensmaurer@wg21bot

      Issue actions

        P3451 R0 A Suggestion for Reflection Access Control · Issue #2114 · cplusplus/papers