Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Feb 14, 2018

Also, remove mention of threads that were removed long ago.

Motivation:
Make it easier to spot bugs such as #11654 and #12426

@maflcko maflcko added the Docs label Feb 14, 2018
@practicalswift
Copy link
Contributor

practicalswift commented Feb 14, 2018

ACK fa03f777880cbe245676a3ac4d5b22d2bc93dbe9

@jamesob
Copy link
Contributor

jamesob commented Feb 14, 2018

ACK fa03f77

@promag
Copy link
Contributor

promag commented Feb 14, 2018

ACK fa03f77.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're talking about class members above, but using a struct here. I think there can be good (performance) arguments not to have an auto-generated constructor for a POD struct, so might be better to use a class for illustration.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My opinion is that such cases should just be justified with a comment:

int a; // Not initialized for performance reasons.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway, fixed...

Also, remove mention of threads that were removed long ago
@maflcko maflcko force-pushed the Mf1802-docDevMemberInit branch from fa03f77 to fa94614 Compare February 16, 2018 19:22
@fanquake
Copy link
Member

fanquake commented Mar 5, 2018

utACK fa94614

@laanwj laanwj merged commit fa94614 into bitcoin:master Mar 5, 2018
laanwj added a commit that referenced this pull request Mar 5, 2018
fa94614 [doc] dev-notes: Members should be initialized (MarcoFalke)

Pull request description:

  Also, remove mention of threads that were removed long ago.

  Motivation:
  Make it easier to spot bugs such as #11654 and  #12426

Tree-SHA512: 8ca1cb54e830e9368803bd98a8b08c39bf2d46f079094ed7e070b32ae15a6e611ce98d7a614f897803309f4728575e6bc9357fab1157c53d2536417eb8271653
@maflcko maflcko deleted the Mf1802-docDevMemberInit branch March 19, 2018 00:18
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 14, 2020
fa94614 [doc] dev-notes: Members should be initialized (MarcoFalke)

Pull request description:

  Also, remove mention of threads that were removed long ago.

  Motivation:
  Make it easier to spot bugs such as bitcoin#11654 and  bitcoin#12426

Tree-SHA512: 8ca1cb54e830e9368803bd98a8b08c39bf2d46f079094ed7e070b32ae15a6e611ce98d7a614f897803309f4728575e6bc9357fab1157c53d2536417eb8271653
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants