Pointer to template types?
Chris via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Apr 28 03:53:20 PDT 2014
On Monday, 28 April 2014 at 10:44:18 UTC, Rene Zwanenburg wrote:
> On Monday, 28 April 2014 at 10:40:49 UTC, Chris wrote:
>> So there is no way of filling an array with something like
>>
>> Person!(string) *pptr;
>>
>> foreach(person; people) {
>> buf ~= &person;
>> }
>
> Person!(string)*[] arr;
>
> Like this?
Exactly, just tried it, this works. I tried various types of
syntax and just couldn't get it right. Thanks a million.
More information about the Digitalmars-d-learn
mailing list