How convert DList!string to string array

Timon Gehr timon.gehr at gmx.ch
Sat Feb 15 08:38:41 PST 2014


On 02/15/2014 05:30 PM, Denis Mezhov wrote:
> Please help. How to convert DList!string to string array?
>
> auto a = DList!string();
> a.insertFront("123");
> a.insertFront("abc");
>
> string[] b = a[];
> Array!string c = a[];
>
> Don't work.
>
>

auto b = a[].array;
Array!string c;
c.insertBack(a[]);



More information about the Digitalmars-d-learn mailing list