May 02, 2017 Re: Porting Java code to D that uses << and >>> operators | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Tuesday, 2 May 2017 at 07:42:45 UTC, Jacob Carlborg wrote:
> From that link:
>
> "Note that dmd currently does not comply with left to right evaluation of function arguments and AssignExpression".
This is something I've never understood. Why doesn't DMD implement the behavior their own language reference specifies? It seems like a very nice guarantee to have...
|
May 02, 2017 Re: Porting Java code to D that uses << and >>> operators | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On 2017-05-02 09:42, Jacob Carlborg wrote:
> On 2017-05-02 01:27, Faux Amis wrote:
>
>> To me, this [2] suggests otherwise ;)
>> Or am I missing something?
>>
>> [2] https://dlang.org/spec/expression.html#order-of-evaluation
>
> From that link:
>
> "Note that dmd currently does not comply with left to right evaluation of function arguments and AssignExpression".
>
Yeah, I am blind. Do all the compilers have this problem?
|
May 03, 2017 Re: Porting Java code to D that uses << and >>> operators | ||||
---|---|---|---|---|
| ||||
Posted in reply to TheGag96 | On 2017-05-02 18:55, TheGag96 wrote: > On Tuesday, 2 May 2017 at 07:42:45 UTC, Jacob Carlborg wrote: >> From that link: >> >> "Note that dmd currently does not comply with left to right evaluation of function arguments and AssignExpression". > > This is something I've never understood. Why doesn't DMD implement the behavior their own language reference specifies? It seems like a very nice guarantee to have... https://github.com/dlang/dmd/pull/4035 |
Copyright © 1999-2021 by the D Language Foundation