[Issue 13184] better error messages for incorrect constructors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 18 13:47:32 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13184
--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Mike Franklin from comment #2)
> (In reply to RazvanN from comment #1)
> > It seems that __gshared is ignored when applied to a constructor, which
> > seems to be in trend with how D usually treats identifiers which are used
> > where they not supposed to. The same happens with extern(C) :
>
> Yes, that does seem to be the trend, and I don't like it. `static` methods
> at the module level is another; the `static` is pointless, but the compiler
> doesn't seem to mind.
>
> I would prefer that, if a token is meaningless, the compiler emit an error.
I think that an error is too much, but a warning could be appreciated. On the
other hand, I know that Walter is against warnings so I don't know if this is
going to advance in any way.
--
More information about the Digitalmars-d-bugs
mailing list