On Tuesday, 4 June 2013 at 21:32:32 UTC, Timon Gehr wrote:
On 06/04/2013 08:10 PM, Max Samukha wrote:
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?
I don't think it is possible. protected methods are part of the
public interface, since inheritance cannot be restricted
selectively.
I don't quite understand. Could you explain?