Fixing const arrays
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Dec 11 00:14:36 PST 2011
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.
>>
>> Andrei
>
> Hmmm.. 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
More information about the Digitalmars-d
mailing list