Re: to auto or not to auto ( in foreach )

2016-07-20 Thread Lobelia Noakes via Digitalmars-d-learn
On Wednesday, 20 July 2016 at 15:40:16 UTC, Lobelia Noakes wrote: On Sunday, 17 July 2016 at 01:58:59 UTC, pineapple wrote: On Sunday, 17 July 2016 at 01:57:21 UTC, pineapple wrote: On Saturday, 16 July 2016 at 22:05:49 UTC, ketmar wrote: actually, `foreach (v; rng)` looks like `foreach` is *r

Re: to auto or not to auto ( in foreach )

2016-07-20 Thread Lobelia Noakes via Digitalmars-d-learn
On Sunday, 17 July 2016 at 01:58:59 UTC, pineapple wrote: On Sunday, 17 July 2016 at 01:57:21 UTC, pineapple wrote: On Saturday, 16 July 2016 at 22:05:49 UTC, ketmar wrote: actually, `foreach (v; rng)` looks like `foreach` is *reusing* *existing* *variable*. most of the time you can put `immut