enum : bool

BCS ao at pathlink.com
Thu Jun 12 14:57:31 PDT 2008


This works

enum Test : bool
{
	yes = true,
	no = false
}
	
void TestIt(Test);

TestIt(Test.yes);


Is any one makeing use of it? It allows for more usefull nameing.




More information about the Digitalmars-d-learn mailing list