On Wednesday, 27 May 2015 at 08:30:33 UTC, Marc Schütz wrote:
See above. Conceptually, you can of course treat it as if it were marked with `scope`, but an actual annotation should not be necessary.

But now you're talking about an upcoming feature in DMD, right?

AFAIK, in current DMD, I can't get any help in avoiding patterns such as

    char[] saved_line;
    foreach (line; File("foo.txt").byLine)
    {
        saved_line = line; // should give error
    }

Right?

Are you saying that adding DMD support for qualifying `line` as `scope` is not the right way to solve this problem?

Reply via email to