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

Ali Çehreli acehreli at yahoo.com
Thu Mar 6 13:26:10 PST 2014


On 03/06/2014 12:02 PM, Steven Schveighoffer wrote:

 > The best way
 > to reference an array in a child class, especially one of a static type,
 > is to not have another copy in the child class :)

Agreed. Alternatively, a member function in the child class could return 
a slice.

Ali



More information about the Digitalmars-d-learn mailing list