www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - nqa bug 0.88

reply Mike Wynn <one_mad_alien hotmail.com> writes:
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;

// Error 42: Symbol Undefined
May 07 2004
parent "Walter" <newshound digitalmars.com> writes:
This is the way it is designed to work, so that one has the option of not
publishing the implementation of the member functions.
May 10 2004