yes, it is. but i think that 'auto' is a perfect fit there. it shouldn't do anything at all, but it is the convient way to mark variable 'locality'. it will not break any of the existing code yet will bring foreach() in line with 'every variable must be explicitly declared with some type' principle.It is documented that code like the above is illegal:
- why foreach() don't use 'auto'? ketmar
- Re: why foreach() don't use 'auto'? Dicebot
- Re: why foreach() don't use 'auto'? ketmar
- Re: why foreach() don't use 'auto'? ketmar
- Re: why foreach() don't use 'auto'? Matej Nanut
- Re: why foreach() don't use 'auto'? w0rp
- Re: why foreach() don't use 'auto'? Timon Gehr
- Re: why foreach() don't use 'auto'? ketmar
