[Issue 8166] retro() of splitter() too

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 21 10:08:47 PST 2015


https://issues.dlang.org/show_bug.cgi?id=8166

--- Comment #3 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Jack Stouffer from comment #2)
> Currently, this can be achieved via 
> 
> auto p = std.array.splitter("this is a message", " ").retro();
> 
> but it's deprecated and going to be removed at the end of the month. So I
> don't think adding this feature to the string specific overload of splitter
> is going to be welcome because it looks like doing it is buggy (I assume,
> why else would this be deprecated?). Therefore, I think that this should be
> marked as won't fix.

Wait, my mistake. Doing 

auto p = std.array.splitter("this is a message", ' ').retro();

instead is perfectly fine. The string specific overload can be changed to use
the first overload of splitter internally.

--


More information about the Digitalmars-d-bugs mailing list