Tue, Jul 28, 2009 at 2:28 PM, Arthur Lloyd<v...@google.com> wrote:
> Daniel Keep Wrote:
>
>> U comma(T,U)(T a, U b) { return b; }
>>
>> Is there any reason you couldn't use something like that?
>
> Sorry, this is probably a newbie question, but.. So instead of return a, b, 
> c; you now have to write return comma(a, comma(b, c)); ? How will that help?
>

typeof(T[$ - 1]) comma(T...)(T args) { return args[$ - 1]; }

There.  Now you can do "comma(a, b, c)".

Reply via email to