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

Protect settings and variables #17

Closed
dionhaefner opened this issue Nov 28, 2017 · 0 comments
Closed

Protect settings and variables #17

dionhaefner opened this issue Nov 28, 2017 · 0 comments

Comments

@dionhaefner
Copy link
Collaborator

Currently, all settings and variables can be overridden at any time. This might cause subtle bugs, both from inside Veros core routines (e.g. when assigning directly to an array instead of updating its values), setups, or even higher-level code.

It may be worth considering protecting variables from being set to entirely new objects (e.g. by overloading setitem in the Veros class). An equivalent check could be made for settings that cannot be safely changed after setup (this should at least warrant a warning).

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