May 08, 2004 nqa bug 0.88 | ||||
---|---|---|---|---|
| ||||
I know this is due to the this(); and I believe (not that I ever use it) that D supports function/method implementations out of line (akinto c++) (right/wrong)? but I do think this should give some kind of warning at least that the module (when compiled) has a missing item. ------------------------------------------------------------ import std.c.stdio; template App( BaseClass ) { class Main { static BaseClass app; this(); // { printf("App!(BaseClass).Main::new"); } // this is the error!! } } class MyApp : App!(MyApp).Main { this() { super(); app = this; } } int main( char[][] args ) { MyApp appl = new MyApp(); return 0; } //temtest.obj(temtest) // Error 42: Symbol Undefined _D7temtest019App_C7temtest5MyApp4Main5_ctorFZC7temte //st11__anonymous19App_C7temtest5MyApp4Main |
Copyright © 1999-2021 by the D Language Foundation