Fields with the same name not causing a warning?
Vinay Sajip
vinay_sajip at yahoo.co.uk
Fri Nov 16 18:37:00 UTC 2018
On Friday, 16 November 2018 at 17:35:13 UTC, Basile B. wrote:
> D is not a compiler that warns much. You can still open an
> issue asking for this (and the warning must be easy to add at
> first glance), but the policy applied to warnings is "compilers
> warnings are a sign of design flaws so instead of emitting one
> we should rather fix the flaw".
Design flaws in what? In this case, the flaw was in my code, but
I would expect some help from the compiler in catching such an
ambiguity, and so fixing the flaw in my code. That it didn't try
to help me might itself be considered a design flaw in the
compiler ;-)
More information about the Digitalmars-d-learn
mailing list