-
Notifications
You must be signed in to change notification settings - Fork 4
[Alex/inot-as-namespace] Provide workarounds for typical sketch idioms not working when using inot-as-class model. #47
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
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2c32f30
to
54085dc
Compare
Memory usage change @ 6864451
Click for full report table
Click for full report CSV
|
80e5a8a
to
1f23f0a
Compare
1f23f0a
to
f82e5d3
Compare
f82e5d3
to
5e67613
Compare
5e67613
to
c7251b8
Compare
Memory usage change @ ed9e23c
Click for full report table
Click for full report CSV
|
346ba38
to
ed9e23c
Compare
Memory usage change @ 067458e
Click for full report table
Click for full report CSV
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
topic: documentation
Related to documentation for the project
type: enhancement
Proposed improvement
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #43.
Objective
Encapsulating the .inot file content within a class prohibits a wide range of typical C/C++ constructs (see examples/Breaks_1/2/3/4/5/6). By encapsulating the .inot file within a namespace instead those issues can be prevented.
Implementation
Thread.inot
Before #47: inot-as-class-body
After #47: inot-within-namespace
Summary
Ad 1) Function signature does not meet required signature (member functions contain this pointer as hidden parameter)
Ad 2) No function prototypes.
Ad 3) Attempt access to thread-private variable
inot-within-namespace offers "helpful"[/irony] suggestion to circumvent privacy shield by namespace:
inot-as-class-body simply provides no way to access inot-private variables as they are private member variables of a class: