More Clang diagnostic
Lutger
lutger.blijdestijn at gmail.com
Tue Oct 26 04:27:56 PDT 2010
Walter Bright wrote:
> bearophile wrote:
>>> "acts very badly" kinda means the same thing :-)
>>
>> DMD acts very badly regarding that specific situation,
>
> As I said, the two error messages it gives are right on target.
They are and technically more so than what clang claims. The difference
however is that dmd reports the error, while clang directs your attention
to where you should proceed fixing the code. For trivial errors that does
help, much like the spelling checker in dmd.
These days I don't even notice it anymore that, whenever I encounter this
error message, I mentally parse it as 'I missed something before line 5 now
where is it...'
>From the programmer p.o.v. the problem this message reports is almost
always located in in the very last word of the dmd message even if
technically it is not:
test.d(5): found '}' when expecting ';' following statement
^ you want to know this
Improving template related error messages however may give more bang for
buck, dmd has already improved greatly in this respect and it really helps.
More information about the Digitalmars-d
mailing list