Am Tue, 04 Jun 2013 20:10:32 +0200 schrieb "Max Samukha" <[email protected]>:
> On Tuesday, 4 June 2013 at 17:39:05 UTC, Peter Alexander wrote: > > http://wiki.dlang.org/DIP22 > > "I'd also throw in getting rid of the "protected" access > attribute completely, as I've seen debate over that being a > useless idea" > > How is that useless? Any non-trivial OOP code > (http://qt-project.org/doc/qt-4.8/qabstractitemview.html#protected-functions) > swarm with protected methods, and rightfully so. How would one > restrict access to members that are not part of public interface > but should be accessible to the derived classes? On a different note, it could be disallowed on structs if it is allowed there, to avoid confusion about its effect there. -- Marco
