Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Read-only constraints #6

Open
QuentinRoy opened this issue Jul 30, 2014 · 0 comments
Open

Read-only constraints #6

QuentinRoy opened this issue Jul 30, 2014 · 0 comments

Comments

@QuentinRoy
Copy link

Protecting an internal constraint is I guess quite easy: one only have to provide a 'public' constraint on its 'private' constraint instead of the 'private' constraint itself. But the setter of this public constraint is still callable and one may still re-set it.

At the opposite, a view on the 'private' constraint would be only get-able. The idea is that it reacts and can be used exactly as any other constraint. It would of course still be invalidated by its parent constraint... But one cannot change directly its value.

Thus, one could expose a bunch of protected constraints as an interface.

@QuentinRoy QuentinRoy changed the title Read-only side of a constraint Read-only constraints Jul 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant