"Nick Sabalausky" <[email protected]> wrote in message 
news:[email protected]...
> "Sönke Ludwig" <[email protected]> wrote in message 
> news:[email protected]...
>> Another example would be synchronized classes:
>>
>> synchronized class X {
>> public alias f g;
>> private void f(){}
>> }
>>
>> Now g() would be a public method that is not protected by the class' 
>> mutex. This case would have to be explicitly forbidden.
>
> Or just cause f to be protected by the class's mutex.

After all, if you're making a public alias of f, then you obviously *do* 
want that function to be public-accessible, just not through the *name* "f".


Reply via email to