So what does (inout int = 0) do?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 15 06:44:45 PDT 2016


On 04/15/2016 03:42 AM, deadalnix wrote:
> On Friday, 15 April 2016 at 04:23:29 UTC, Jonathan M Davis wrote:
>> IIRC, the problem has to do with ranges of inout elements working
>> correctly, which gets really funky, because inout is a temporary thing
>> and not a full-on type constructor/qualifier. I believe that Kenji is
>> the one that implemented the fix, and I think that he explained it in
>> the newsgroup at some point. Certainly, there have been a few times
>> that it's come up in D.Learn when folks ask what the heck it is, so
>> there should be a few posts floating around with an explanation. This
>> is the only useful post that I could find in a quick search though:
>>
>
> Whatever the problem is, none of this seems like a good solution.

I agree. -- Andrei



More information about the Digitalmars-d mailing list