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

Do not hard code the values dependency constants #3

Open
szapp opened this issue Aug 23, 2024 · 0 comments
Open

Do not hard code the values dependency constants #3

szapp opened this issue Aug 23, 2024 · 0 comments

Comments

@szapp
Copy link
Owner

szapp commented Aug 23, 2024

The assumption that the dependencies would always have the same values seems to fail for heavily modified projects.

Use the variable-overwrite trick (see bottom of linked file) and an initialization function to check the type of the symbols to assess whether they have been defined as constants before. If not, check the type of the symbol and set their content to the expected value.

Whether this is possible for the focus instances has to be researched: If an existing instance is re-defined as variable, what happens.

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