Pointer to template types?

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 28 04:14:21 PDT 2014


On Monday, 28 April 2014 at 11:04:17 UTC, bearophile wrote:
> Chris:
>
>> So there is no way of filling an array with something like
>>
>> Person!(string) *pptr;
>>
>> foreach(person; people) {
>>   buf ~= &person;
>> }
>
> So you want an array filled with instances of the same 
> instantiation, sorry, I misunderstood your problem for a more 
> complex one :-)
>
> Bye,
> bearophile

No worries. I didn't make it clear either that it was about 
syntax.


More information about the Digitalmars-d-learn mailing list