why foreach() don't use 'auto'?
ketmar
ketmar at ketmar.no-ip.org
Fri Mar 28 16:29:17 PDT 2014
> It is documented that code like the above is illegal:
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.
More information about the Digitalmars-d
mailing list