inner member classes in final outer class

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Sep 16 08:35:39 PDT 2007


"coxalan" <coxalan at web.de> wrote in message 
news:fcji0p$1tos$1 at digitalmars.com...
> Bruno Medeiros Wrote:
>>        Inner i1 = new Inner!(o1);
>>        Inner i2 = new Inner!(o1);
>>
>>        Inner i3 = new Inner!(o2);
>>        Inner i4 = new Inner!(o2);
>>    }

> But it does not compile for me:
> test.d(12): class test.Inner(alias outer) is used as a type
> test.d(12): variable test.main.i1 voids have no value

Change those declarations of i1, i2... to something like:

auto i1 = new Inner!(o1);
auto i2 = new Inner!(o2); 





More information about the Digitalmars-d mailing list