compile-time function in a class?

Davidl Davidl at 126.com
Tue Mar 20 10:54:32 PDT 2007


class test
{
	static char[] c(){return "a";}
	int a;
	class b
	{
		mixin(c());
	}
}
void main()
{

}

don't u think my example should compile?

i don't violate any thing from evaluating func c from compile-time



More information about the Digitalmars-d mailing list