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

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Steven Schveighoffer <[email protected]> ---
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