On 03/06/2014 11:40 AM, Steven Schveighoffer wrote:

>> class A
>> {
>>    S[]* pointer_to_list;
>>    abstract...
>> }

> I would highly suggest to just use S[] and not S[]*. A slice is already
> a reference (coupled with a length).

But what if there are elements added to B.items later on? I assumed the OP wanted a true reference.

> You can read more about D arrays and slices here:
>
> http://dlang.org/d-array-article.html

My I suggest you do the same. :o)

> -Steve

Ali

Reply via email to