comma operator causes hard to spot bugs

deadalnix deadalnix at gmail.com
Sun Apr 22 16:56:27 PDT 2012


Le 21/04/2012 18:54, bearophile a écrit :
> Jonathan M Davis:
>
>> There have been discussions about the comma operator before. I don't
>> expect that it's going anywhere,
>
> Maybe there are intermediate solutions between keeping wild commas in D
> and disallowing them fully. I think most of my bugs caused by commas are
> similar to the one shown by the OP. This means this is not a common
> source of bugs:
>
> foo(), bar();
>

This is completely redundant with foo(); bar();

I see no benefit from being able to do this.


More information about the Digitalmars-d mailing list