COW vs. in-place.
kris
foo at bar.com
Tue Aug 1 14:11:38 PDT 2006
Andrei Khropov wrote:
> Dawid Ciężarkiewicz wrote:
>
>
>>I'd rather wait till const/immutability in D problem will be resolved. Don't
>>forget that additional "option" is runtime cost. There are some
>>propositions of const/immutability that could help providing compile time
>>information to deal with your proposition.
>
>
> I agree. Adding additional parameter doesn't seem to be a good idea and also
> raises the question whether the default behavior will be to copy or not and
> also introduces possibility of subtle errors when passing the flag was
> mistakenly omitted.
>
"to CoW or not to CoW ~ that is the question ..."
"to err is human; to moo is bovine"
More information about the Digitalmars-d
mailing list