Skip to content

fix Issue 15897 - private base class method not seen through derived class#5727

Merged
AndrejMitrovic merged 1 commit intodlang:stablefrom
MartinNowak:fix15897
May 6, 2016
Merged

fix Issue 15897 - private base class method not seen through derived class#5727
AndrejMitrovic merged 1 commit intodlang:stablefrom
MartinNowak:fix15897

Conversation

@MartinNowak
Copy link
Member

  • properly deprecate private symbol visibility through derived classes

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15897 private base class method not seen through derived class

@mathias-lang-sociomantic
Copy link
Contributor

Looks like you need an update checkimports2a. The fix itself LGTM.

@MartinNowak
Copy link
Member Author

Looks like you need an update checkimports2a. The fix itself LGTM.

I rather wait for https://github.com/dlang/dmd/pull/5651/files#diff-00b32f1ed7ba16d50e1e619c297ff277L1315 to remove the nonsense message.

@MartinNowak
Copy link
Member Author

Rebased

…class

- properly deprecate private symbol visibility through derived classes
@MartinNowak
Copy link
Member Author

Fixed

@AndrejMitrovic
Copy link
Contributor

Auto-merge toggled on

@AndrejMitrovic AndrejMitrovic merged commit c41f00b into dlang:stable May 6, 2016
@9rnsr
Copy link
Contributor

9rnsr commented May 7, 2016

This change will break existing valid code, without legitimate design decision.

If someone (@WalterBright and @andralex ?) get approved the new design, it should be documented in changelog and language spec. I'll repopen the original bugzilla issue.

@AndrejMitrovic
Copy link
Contributor

Hmm.. the change seemed logical to me at first. Think it needs to go through a DIP? We could revert until we agree on something.

9rnsr added a commit to 9rnsr/dmd that referenced this pull request May 7, 2016
This reverts commit c41f00b, reversing
changes made to c5a5758.
@9rnsr
Copy link
Contributor

9rnsr commented May 7, 2016

I also think the concept talked by @MartinNowak is logical. But I think a logical behavior is not always useful.
I opened #5736 to revert this change on stable branch.

@MartinNowak
Copy link
Member Author

This just turns an error into deprecation. We could discuss the change though. #5736 (comment)

@MartinNowak MartinNowak deleted the fix15897 branch May 13, 2016 12:24
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