xxxInPlace or xxxCopy?

Jesse Phillips jessekphillips+D at gmail.com
Wed Jan 19 16:15:50 PST 2011


Andrei Alexandrescu Wrote:

> So that would make copying the default behavior. Alternatively, we could 
> make in-place the default behavior and ask for the Copy suffix:

Do what sort does. On another thought what about:

auto s = replace(s1[], "lil", "li'l");

isn't the empty [] the specification for saving a range in its current form? Just seems like this would be how we'd want to do things.


More information about the Digitalmars-d mailing list