import concerns (was Re: Historical language survey)

Sean Kelly sean at f4.ca
Sat Jul 8 00:07:24 PDT 2006


Walter Bright wrote:
> 
> The problems happen when one has:
> 
> void foo(int x);
> private void foo(long x);
> 
> So the first foo is found, then overload rules apply, and the second foo 
> is selected.

This would only occur if both overloads of foo occurred in the same 
module, correct?  How is that different from the way things work now? 
Or is the issue simply that in the face of a "true" private mechanism, 
such behavior would be even more confusing?


Sean



More information about the Digitalmars-d mailing list