RFC for suggestion: setting access rights to added mixins
Posted: Tue Nov 06, 2012 12:55 am
Hi,
I have a class, that adds a mixin.
I would like to hide a few of the mixin public members/methods so as to only use them internally, but have them be invisible (private) to the outside consumer. (the hiding happens in the class, doesn't change the mixin itself)
Is this possible for mixins?
a way to accomplish this is to instantiate objects inside the class, and then create methods that mimic them -- manually exposing whichever I want,
but that's more work than I would like.
I think a support for setting access rights for specific methods in the added mixin would be an ideal solution.
please your comments
I have a class, that adds a mixin.
I would like to hide a few of the mixin public members/methods so as to only use them internally, but have them be invisible (private) to the outside consumer. (the hiding happens in the class, doesn't change the mixin itself)
Is this possible for mixins?
a way to accomplish this is to instantiate objects inside the class, and then create methods that mimic them -- manually exposing whichever I want,
but that's more work than I would like.
I think a support for setting access rights for specific methods in the added mixin would be an ideal solution.
please your comments