April 19, 2016 Re: So what does (inout int = 0) do? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On Monday, 18 April 2016 at 00:53:26 UTC, Temtaime wrote:
> shared currently is useless too tbw
shared did catch bugs in phobos and user code, that would otherwise sneak in.
|
May 01, 2016 Re: So what does (inout int = 0) do? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | 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)?
|
May 02, 2016 Re: So what does (inout int = 0) do? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | 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
|
Copyright © 1999-2021 by the D Language Foundation