On 12/11/11 2:08 AM, Mehrdad wrote:
On 12/11/2011 12:05 AM, Andrei Alexandrescu wrote:I'm not sure. How many times have you been in a place in life where you had a const range on your hands, that's not an array? I haven't.AndreiHmmm.. isn't that precisely what happens when you define a 'const' method for your (custom) range type? 'this' now becomes a const range.
What do you do inside that method? It's reasonable to not expect to change it.
Andrei