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

Default initialization explanations unclear in ch 1.3 #42

Open
VictorEijkhout opened this issue Sep 19, 2022 · 0 comments
Open

Default initialization explanations unclear in ch 1.3 #42

VictorEijkhout opened this issue Sep 19, 2022 · 0 comments

Comments

@VictorEijkhout
Copy link

Possibly related to #21

Page 24: 6 lines from the bottom you use first "default-initialized", and next sentence "initalized by default". Are those the same? Then I'd suggest using twice the same phrase. This is confusing.

Also what's the relation of the first sentence to the second? Right now I'm reading it as "If no constructor is defined, members are initialzied by default EXCEPT if they are of built-in type, then not." Correct?

Then page 26 line 3: "prior to the function .... " So: if there is no constructor, built-in type members are not initialized by default, but if there is a default constructor they are? Truly weird. Might be worth remarking on.

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