https://issues.dlang.org/show_bug.cgi?id=15926

Steven Schveighoffer <schvei...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schvei...@yahoo.com

--- Comment #2 from Steven Schveighoffer <schvei...@yahoo.com> ---
The issue is that inout local variables are only allowed to be declared inside
functions that accept inout parameters.

For example:

void foo()
{
   inout int x; // error
}

Note, this is not a bug, but expected behavior, just not well-explained.
However, I think we should remove the limitation, as it causes more problems
than it solves.

--

Reply via email to