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

Child molecules should have access to parent variables without using $parent #19

Open
madx opened this issue Jun 23, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@madx
Copy link
Contributor

madx commented Jun 23, 2020

Currently a child molecule has to use the $parent notation to access variables defined in the parent scope.
It would be more natural to have a direct access to parent variables, with the ability of shadowing a parent variable by declaring it in a child scope. Once shadowed, a parent variable would remain accessible through the $parent notation.
This could probably be implemented by using a proxy for the data variable in createMolecule

@madx madx added the enhancement New feature or request label Jun 23, 2020
@madx madx self-assigned this Jun 23, 2020
@madx madx added this to the 1.0.0 milestone Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant