class type definition problem

david davidl at 126.com
Sun Aug 6 03:30:17 PDT 2006


class A{
}
main()
{
   /+
   A b; //<------- this is ok before A is declared as a int variable
   +/
   int A;
   A b;  // actually i want b declared as class A. but d sees it as  
variable int A;
         // even if D think this would cause by mistaken programming, can D  
provide one way for
	  // us, like "class A b" to define b as Class A?

}
-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the Digitalmars-d-learn mailing list