So what does (inout int = 0) do?

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon May 2 07:15:57 PDT 2016


On 5/1/16 7:58 PM, Seb wrote:
> On Friday, 15 April 2016 at 23:05:14 UTC, Steven Schveighoffer wrote:
>> On 4/15/16 6:31 PM, Timon Gehr wrote:
>>> [...]
>>
>> I'm sorry, should have put on my standard disclaimer that I am not a
>> compiler writer :) I actually have no idea how this is done in the
>> compiler, just how a compiler should behave as I understand it in my
>> head.
>>
>> [...]
>
> inout(bool) newsgroup.revive_discussion();
>
> can we make the compiler smart enough to solve the use-cases of inout
> (=auto const/immutable deducation)?

If we can find a way to replace inout with something that does 
effectively everything inout does, then I'm all for it.

-Steve


More information about the Digitalmars-d mailing list