Should alias expand visibility?
Steven Schveighoffer
schveiguy at yahoo.com
Thu Jul 29 05:26:00 PDT 2010
On Tue, 27 Jul 2010 17:16:57 -0400, Tomek Sowiński <just at ask.me> wrote:
> Steven Schveighoffer wrote:
>
>> On Tue, 27 Jul 2010 14:42:12 -0400, Tomek Sowiński <just at ask.me> wrote:
>>
>>> Steven Schveighoffer wrote:
>>>
>>>> I think the better argument is that it serves
>>>> no purpose to have a private alias to a public function. You can just
>>>> as
>>>> easily call the public function.
>>>
>>> private alias ClassFromModuleBeyondReach.awkwardStaticName
>>> awkwardHelper;
>>
>> This is a good point. But we are talking about aliasing a private
>> function into a public one.
>
> You said "private alias to a public function", look above ;)
I know, I should have said private alias to a public function in the same
module.
-Steve
More information about the Digitalmars-d
mailing list