Should the comma operator be removed in D2?
retard
re at tard.com.invalid
Tue Nov 17 15:41:30 PST 2009
Mon, 16 Nov 2009 18:22:24 -0500, Adam D. Ruppe wrote:
> On Mon, Nov 16, 2009 at 05:00:56PM -0600, Ellery Newcomer wrote:
>> wrong. assignment has higher precedence than comma.
>
> Oh, duh. And I use that fact in for loops all the time too...
>
>> change the first to
>>
>> a = (b, c);
>
> Right - this illustrates what I had in mind.
I think this pretty much sums up how error prone the feature can be even
in the hands of an experienced programmer..
More information about the Digitalmars-d
mailing list