Fixing const arrays

Mehrdad wfunction at hotmail.com
Sun Dec 11 00:08:54 PST 2011


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.


More information about the Digitalmars-d mailing list