The empty statement ";" - when is it useful?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Jul 28 12:59:14 PDT 2009
Arthur Lloyd 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?
I think he just means that the comma operator is not a strategic
advantage for automated code generation.
Andrei
More information about the Digitalmars-d
mailing list