Killing the comma operator
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 17 19:14:44 PDT 2017
On Tuesday, 10 May 2016 at 12:49:28 UTC, Steven Schveighoffer
wrote:
> BTW, has anyone proposed a replacement like this?
>
> auto ref comma(T...)(auto ref T t) if(T.length > 1)
> {
> return t[$-1];
> }
That won't work with void expressions.
Here's a version which does:
https://github.com/CyberShadow/ae/commit/1405e9deff60d33952e52600bc1d1fcbf3511084
More information about the Digitalmars-d
mailing list