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

Allow member variable initialization inline #10

Open
matt-attack opened this issue Jul 21, 2017 · 0 comments
Open

Allow member variable initialization inline #10

matt-attack opened this issue Jul 21, 2017 · 0 comments
Assignees

Comments

@matt-attack
Copy link
Owner

Allow users to declare the value to initialize member variables to inline, much like the feature in C++. The value would automatically be assigned to the variable at the start of the destructor, assigning at the end could cause conflict or confusion if the user decides to assign to it in the constructor as well.
Ex: struct Type { int p = 5; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant