Can't create nested classes

Alexander Panek a.panek at brainsware.org
Tue Jan 23 11:12:48 PST 2007


Heinz wrote:
> I can't also have variables like 'int i', it throws access violation. But why in the DMD page here http://www.digitalmars.com/d/class.html is listed a bunch of classes with 1 to 3 non-static members like int i?
> 
> Man, C# is a lot more flexible in this topic, why can we have non-static members in C# and not in D?

No offense intended, but I do think you're doing something wrong here. 
Would you mind pasting the whole source code, please?


More information about the Digitalmars-d-learn mailing list