DIP1001: DoExpression

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 17:22:32 PDT 2016


On 03.09.2016 17:28, Andrei Alexandrescu wrote:
>
> What's wrong with:
>
> auto seq(T...)(auto ref T vals) { return vals[$ - 1]; }

- The name (I'd expect that function to return vals).

- Does not work if one or more arguments is of type 'void'. (Arguably 
that's just a language misdesign.)


More information about the Digitalmars-d mailing list