private mixin function

Frank Benoit benoit__ at __tionex.de
Tue Apr 11 05:13:54 PDT 2006


I want to make a mixin for a private function.

--------------------------------------------------------------------------

template m(T){
	private void func(){}
}

class C{
	mixin m!(byte) m1;
	public this(){
		func(); // error: func is private
	}
}

--------------------------------------------------------------------------

Is this possible ?



More information about the Digitalmars-d-learn mailing list