Can't create nested classes

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Jan 22 19:52:34 PST 2007


"Heinz" <billgates at microsoft.com> wrote in message 
news:ep408i$2389$1 at digitaldaemon.com...

>        private Table mytable = new Table();

You're not allowed to have non-constant expressions in class member 
initializers.  Move this 'new' into a constructor for myclass. 




More information about the Digitalmars-d-learn mailing list