So what does (inout int = 0) do?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 15 13:08:19 PDT 2016


On 04/15/2016 04:03 PM, Steven Schveighoffer wrote:
> I have a way to make this work. This is actually the most major sticking
> point in inout.
>
> The only correct thing is to keep is that globals/static variables
> cannot be typed inout.

Another special case? The only correct thing is to simplify the language 
to everybody's benefit. -- Andrei



More information about the Digitalmars-d mailing list