Improving Compiler Error Messages

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


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

> http://www.drdobbs.com/blog/archives/2010/05/improving_compi.html
> 
> The next dmd update is getting the fruits of this.

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

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 michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list