Obsecure problem 2

jfondren julian.fondren at gmail.com
Wed Aug 3 18:53:35 UTC 2022


On Wednesday, 3 August 2022 at 18:33:37 UTC, pascal111 wrote:
> I changed it to "x=notfunny(x);" and has the same result.

Now you are changing the value of the temporary loop variable 
that is still immediately discarded afterwards.

You should return a new range that has the values you want, not 
try to mutate the range you're given.


More information about the Digitalmars-d-learn mailing list