Fixing const arrays

Mehrdad wfunction at hotmail.com
Sun Dec 11 00:36:20 PST 2011


On 12/11/2011 12:14 AM, Andrei Alexandrescu wrote:
> What do you do inside that method? It's reasonable to not expect to 
> change it.
>
> Andrei

Not sure right now, but something along the lines of

     auto copy = this;
     foreach (v; copy)
          ....;

sounds like code I've definitely seen before.


More information about the Digitalmars-d mailing list