To avoid some linking errors

Jesse Phillips Jessekphillips+D at gmail.com
Mon Oct 29 14:28:05 PDT 2012


On Sunday, 28 October 2012 at 13:39:26 UTC, bearophile wrote:
> This code compiles with no errors, and then later the linker 
> gives a "Symbol Undefined":
>
>
> abstract class A {
>     public void foo();
> }
> class B : A {}
> void main() {}

Interestingly, adding abstract to the method will result in no 
linker error for compiling. And if a new B is created then a 
compiler error is provided instead of a linker error.

I'm for getting some line numbers over the less informative 
linker error.


More information about the Digitalmars-d mailing list