To avoid some linking errors

Walter Bright newshound2 at digitalmars.com
Sun Oct 28 10:17:40 PDT 2012


On 10/28/2012 6:39 AM, bearophile wrote:
> This code compiles with no errors, and then later the linker gives a "Symbol
> Undefined":
> [...]
 > (and give a nice compilation error if it's missing)?

It already gives a nice error "Symbol Undefined". I don't understand why this is 
a problem.

   void foo() { } // defined here
   void foo();    // defined elsewhere

No need for anything more.


More information about the Digitalmars-d mailing list