[Issue 21184] Unimplemented methods of interface are not reported as errors during compilation.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 25 15:24:15 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=21184
Dennis <dkorpel at live.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |dkorpel at live.nl
Resolution|--- |INVALID
--- Comment #6 from Dennis <dkorpel at live.nl> ---
(In reply to alexandru.ermicioi from comment #2)
> This is in .d file, and is completely clear that is a bug, since you can't
> have an unimplemented method. (...) I struggle to even understand how you
> could implement such a method given it is a D method, not c++ one.
That's just false. Separate compilation is a thing, and functions without
bodies are not limited to `.di` files (which is just a convention) or
`extern(C++)` (which is just a different ABI and mangling scheme). See:
https://dlang.org/spec/function.html#function-declarations
--
More information about the Digitalmars-d-bugs
mailing list