Changing the behavior of the comma operator

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 26 10:27:17 PDT 2014


On 3/26/14, 7:39 AM, Steven Schveighoffer wrote:
> On Wed, 26 Mar 2014 10:24:59 -0400, Kagamin <spam at here.lot> wrote:
>
>> On Wednesday, 26 March 2014 at 11:08:45 UTC, Andrej Mitrovic wrote:
>>> Have you never experienced this bug before?
>>>
>>> enum vals = [
>>>     "afoo01foo01",
>>>     "bbar02foo02",
>>>     "cdoo03foo03",
>>>     "dfoo01foo04",
>>>     "ebar02foo01",
>>>     "fdoo03foo02",
>>>     "gfoo01foo03",
>>>     "hbar02foo04",
>>>     "aidoo03foo01"
>>>     "jfoo01foo02a",
>>>     "kbar02foo03",
>>>     "ldoo03foo04",
>>> ];
>>
>> In such case I add lines by copying other lines, so there's little
>> chance to miss a comma. Well, I don't think you can find someone, who
>> would defend implicit concatenation.
>
> Frequently, I have situations where I do not put a comma on the last
> element.

Big mistake :o). -- Andrei



More information about the Digitalmars-d mailing list