How convert DList!string to string array

Timon Gehr timon.gehr at gmx.ch
Sat Feb 15 10:30:39 PST 2014


On 02/15/2014 07:23 PM, Jakob Ovrum wrote:
> On Saturday, 15 February 2014 at 18:14:00 UTC, Timon Gehr wrote:
>> On 02/15/2014 06:11 PM, Jakob Ovrum wrote:
>>> ...
>>>
>>> You can construct containers from ranges directly:
>>>
>>> auto c = Array!string(a[]);
>>
>> This seems obvious, but it is not actually true.
>
> It is a defined container primitive. The first one in the table, in fact.

Array does not implement this primitive.
http://dpaste.dzfl.pl/a8cb1064bd08


More information about the Digitalmars-d-learn mailing list