Best way to reference an array in a child class...

captain_fid bell.hue at gmail.com
Thu Mar 6 14:44:09 PST 2014


>>    this() {items = [ {10, "first"}, {20, "second"}];}

strangely enough, when modeling this the first time (using items 
as a class) and 'new item() syntax) there was no real issue.

I thought using a static array of structs in the children would 
be more efficient when instantiating the objects. Never mind 
whether its true or not - Speed isn't a really a concern, 
learning is.


More information about the Digitalmars-d-learn mailing list