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

Decide on the "constness semantic" of the Handle<Entity>. #18

Open
Adnn opened this issue Feb 1, 2023 · 0 comments
Open

Decide on the "constness semantic" of the Handle<Entity>. #18

Adnn opened this issue Feb 1, 2023 · 0 comments

Comments

@Adnn
Copy link
Contributor

Adnn commented Feb 1, 2023

It could either mimic value semantic (i.e. on const Handle does not allow to modify the Entity) or have reference semantic (const Handle only means the handle cannot be assigned to reference a different Entity).

The matter may be complicated by the fact we have two levels of mutation on a logical Entity.

  • Existing components' values mutation
  • adding/removing components (removing all components == erasing the Entity itself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant