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

Add a scope concept to the DSL words #156

Merged
merged 12 commits into from
Oct 26, 2024
Merged

Add a scope concept to the DSL words #156

merged 12 commits into from
Oct 26, 2024

Conversation

TrentHouliston
Copy link
Member

Adds a new concept called scope to the NUClear DSL.
This concept can be used to add words which will be able to know when they are running within a specific reaction.

For example, if you want to have a DSL word that modifies how events are emitted within that task you can use this to track when the current task is one with that word.
Then when another system needs to know if it is running in that context it can call the in_scope function.

@TrentHouliston TrentHouliston merged commit 3350a93 into main Oct 26, 2024
10 of 12 checks passed
@TrentHouliston TrentHouliston deleted the houliston/scope branch October 26, 2024 03:28
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

Successfully merging this pull request may close these issues.

1 participant