Interesting user mistake

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 13 11:02:44 PDT 2015


On 09/03/2015 06:46 PM, Andrei Alexandrescu wrote:
> http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang
> 
> 
> The gist of it is the user wrote =+ instead of +=. I wonder if we should
> disallow during tokenization the sequence "=", "+", whitespace. Surely
> it's not a formatting anyone would aim for, but instead a misspelling of
> +=.
> 
> 
> Andrei

https://github.com/D-Programming-Language/dmd/pull/5072


More information about the Digitalmars-d mailing list