COW vs. in-place.
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Jul 31 14:18:38 PDT 2006
"Dave" <Dave_member at pathlink.com> wrote in message
news:ealack$bjg$1 at digitaldaemon.com...
>
> What if selected functions in phobos were modified to take an optional
> parameter that specified COW or in-place? The default for each would be
> whatever they do now.
>
> For example, toupper and tolower?
>
> How many times have we seen something like this:
>
> str = toupper(str); // or equivalent in another language.
I've had the same idea; would be great for those trying to write libraries
that make as few allocations as possible. Not to mention just plain more
efficient if you don't need a copy.
More information about the Digitalmars-d
mailing list