constness for arrays
Don Clugston
dac at nospam.com.au
Thu Jul 20 06:11:33 PDT 2006
xs0 wrote:
> Craig Black wrote:
>> Sounds like a great idea to me. Easy to implement, improves
>> correctness and performance. What are we waiting for?
>
> Personally, I'm waiting/hoping for Walter to see the proposal and say
> what he thinks :)
>
> I'm also wondering whether the "overwhelming" response to the proposal
> is because
> - I didn't write "proposal" in the subject
> - it's from me (I used to argue in a bad way too much, I'm sure I'm
> being filtered at least by some people :)
> - it's so bad it's not even worth a comment
> - it's so good everybody is already waiting for Walter to say yes ;)
Maybe you just need some better terminology. How about
arr.clone
to replace arr with a writable copy of arr (instead of "needToWrite").
(you don't care if its the original arr, or a dup)
and turn it into a proposal about a more efficient dup.
Modify Only One Copy On Write.
(MOO COW).
<g>.
More information about the Digitalmars-d
mailing list