Is there any reason to use non-ref foreach?

Andrea Fontana nospam at example.com
Mon Sep 3 13:34:36 UTC 2018


On Friday, 31 August 2018 at 09:59:20 UTC, Dukc wrote:
> For me, it seems that for generality you should always add ref 
> into foreach loop variable. The reason is this:

One good reason:
https://forum.dlang.org/thread/dlhrrgvzmhladnphidei@forum.dlang.org




More information about the Digitalmars-d-learn mailing list