Associative array issue

Igor Kolesnik shadowmaan at gmail.com
Wed Jan 23 12:31:31 PST 2013


> The correct way to write that line is:
>
> 	string[] words = split(strip(line.idup));
>
> which will copy the buffer, thereby ensuring it's safe to keep 
> slices of
> it in your associative array, and also return the correct type 
> so that
> no cast is necessary.
>
>
> T

This makes sense. Thanks a lot!

Igor


More information about the Digitalmars-d-learn mailing list