[dmd-beta] dmd 2.063 beta 3

Walter Bright walter at digitalmars.com
Sat May 18 11:50:04 PDT 2013


On 5/18/2013 7:11 AM, Andrej Mitrovic wrote:
> On 5/18/13, Rainer Schuetze <r.sagitario at gmx.de> wrote:
>> i.e. the local import in the base class has higher precedence than
>> module scope. Is this change by design or a regression?
> That had to have been a regression. It's basically allowing function
> hijacking via imports. I think we should file this as a bug.

I don't agree. A base class's scope must override the top level module scope.

Also, a base class can always override what a derived class does. This is not 
hijacking.


More information about the dmd-beta mailing list