DIP1001: DoExpression

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 08:28:36 PDT 2016


On 9/3/16 4:20 PM, Dicebot wrote:
> DIP: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1001.md
>
> Abstract
> --------
>
> A DoExpression do(x,y,z) is exactly equivalent to a CommaExpression
> (x,y,z), but doesn't emit a deprecation warning.
>
> ==============================================
>
> First community DIP has just landed the review queue. Please express
> your opinion and suggestions - it will all be taken into consideration
> when the formal review time comes.

What's wrong with:

auto seq(T...)(auto ref T vals) { return vals[$ - 1]; }

?

We need to fix order of evaluation of function arguments anyway.


Andrei


More information about the Digitalmars-d mailing list