Comma operator = broken design
so
so at so.so
Thu Dec 8 04:17:20 PST 2011
On Thu, 08 Dec 2011 11:17:48 +0200, Dejan Lekic <dejan.lekic at gmail.com>
wrote:
>
>>
>> Why is this operator still kept around?
>
> No offense, but I find it strange/funny that you even ask why! :)
>
> Have you never used comma in for loops???
>
Not sure if it is that relevant for D, but good point.
for(auto i=beg(), e=end(); i!=e; ++i)
for(auto i, j, k;; ++i, ++k)
...
More information about the Digitalmars-d
mailing list