Issue 7236 - Protected class member should be accessible in subclass in another file #1478

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@ghost
ghost commented Jan 13, 2013

http://d.puremagic.com/issues/show_bug.cgi?id=7236

I'm somewhat on the edge of this one, whether it should be allowed or not. I'd love to hear some input.

Owner

Yes, protected is not related to file. I approve. @WalterBright?

Member

@andralex: The behavior tested in NC1 is precisely a case of protected depending on the file structure.

I'd say fix the original issue, but don't allow external access from the same file as in the NC1 tests. I don't have an overly strong opinion on that, though.

@ghost
ghost commented Jan 14, 2013

Maybe we should delay fixing any of this until we get that DIP on access protection.

@ghost ghost closed this Feb 4, 2013
Owner

The bug report is invalid, see my comment in it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment