dup field in sub-class should be reported by the compiler
Walter Bright
newshound1 at digitalmars.com
Mon Aug 13 16:54:26 PDT 2007
Brad Roberts wrote:
> On Mon, 13 Aug 2007, Walter Bright wrote:
>> I just don't see the issue.
>
> Apply this same logic to variable shadowing. Shadowing has been declared
> illegal.
While pedantically it is the same logic, but practically I think it's
very different. I don't see writing derived classes like one writes a
nested scope.
More information about the Digitalmars-d
mailing list