Fields with the same name not causing a warning?

Norm norm.rowtree at gmail.com
Fri Nov 16 22:18:03 UTC 2018


On Friday, 16 November 2018 at 15:59:14 UTC, Vinay Sajip wrote:
> This code should IMO give at least a warning, but it doesn't:
>
> abstract class A {
>     int kind;
> }
>
> [...]


This is not unique to D you can do the same in Java or C++.

bye,
Norm


More information about the Digitalmars-d-learn mailing list