Improving Compiler Error Messages

Michel Fortin michel.fortin at
Sun May 2 05:50:31 PDT 2010

On 2010-05-01 22:56:42 -0400, Walter Bright <newshound1 at> said:

> The next dmd update is getting the fruits of this.

	test.d(4): Error: undefined identifier wrietln, did you mean template 

It'd be nice if output like that was be a machine readable. This way, 
an editor could display misspelled words with a red underline and you 
could automatically use the suggestion by right-clicking and selecting 
it (just like spell checking in word processing apps, or in Eclipse). 
But to do that you'd need the column coordinates of the word too... too 
bad DMD doesn't track this.

Michel Fortin
michel.fortin at

More information about the Digitalmars-d mailing list