-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
fix Issue 15323 - Module.members and .deferred3 should use data struc… #5693
Conversation
|
98c059f to
0cde105
Compare
…ture with fast lookup
| a = null; | ||
| break; | ||
| auto a = mi.members; | ||
| for (size_t i = 0; 1; ++i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that 1 is confusing, should be removed
|
Auto-merge toggled on |
| @@ -8008,22 +8011,26 @@ public: | |||
| } | |||
| //printf("\t--> mi = %s\n", mi.toPrettyChars()); | |||
|
|
|||
| Dsymbols* a = mi.members; | |||
| for (size_t i = 0; 1; i++) | |||
| if (memberOf is mi) // already a member | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have probably written if (memberOf) { assert(memberOf is mi); … } to make it clearer how this is supposed to behave.
|
@andralex - Out of curiousity, why do you make a comment asking for a change, then hit "merge" anyway? If something "should be removed" then surely that should be ratified before taking the change in. |
…ture with fast lookup