View previous topic :: View next topic |
Author |
Message |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Aug 25, 2008 4:16 am Post subject: Question about semantic errors |
|
|
I know that there are big problems implementing full semantic errors with good performance but would it be possible to have an option that implements all the semantic errors that jdt does (those that make sense in D) with the same performance that jdt does? I think it would be very valuable to show errors like missing imports for types and similar that jdt can handle. I think it would be amazing if I could get help from the IDE to write a D program with almost no compile errors, like with Java. |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Mon Aug 25, 2008 6:35 am Post subject: |
|
|
The errors JDT reports are java specific, and are built inside of the Java compiler the JDT guys developed. I can't use that, because D's semantics are very different, and are based on a different syntax tree. The only thing I can do is to try to improve semantic errors the way they work not, but it consumes a lot of time (find an error, write a test for it, fix it, see that everything else works ok, repeat... and the loop is almost neverending). |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Aug 25, 2008 7:24 am Post subject: |
|
|
ok I see |
|
Back to top |
|
|
|