Changing the foreach key...

Lionello Lunesu lio at
Tue Oct 31 01:04:55 PST 2006

Karen Lanrap wrote:
> Chris Nicholson-Sauls wrote:
>> I would consider that a feature. 
> Why then to forbid "inout"? 

Changing the key of an element in an AA would change the order of the 
items. And what would you expect changing the 'key' (=index) of an 
element in a normal array would do? (Move the element to a different index?)


More information about the Digitalmars-d-learn mailing list