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

fix Issue 15323 - Module.members and .deferred3 should use data struc… #5693

Merged
merged 1 commit into from
Apr 23, 2016

Conversation

WalterBright
Copy link
Member

…ture with fast lookup

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15323 Module.members and .deferred3 should use data structure with fast lookup

@WalterBright WalterBright force-pushed the fix15323 branch 2 times, most recently from 98c059f to 0cde105 Compare April 23, 2016 00:44
a = null;
break;
auto a = mi.members;
for (size_t i = 0; 1; ++i)
Copy link
Member

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

@andralex
Copy link
Member

Auto-merge toggled on

@andralex andralex merged commit d57ca4c into dlang:master Apr 23, 2016
@WalterBright WalterBright deleted the fix15323 branch April 23, 2016 20:33
@@ -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
Copy link
Member

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.

@ibuclaw
Copy link
Member

ibuclaw commented Apr 24, 2016

@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.

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

Successfully merging this pull request may close these issues.

5 participants