DWScript SVN version will now compile and run under XE5.
There is only one gotcha due to an XE5 regression.
While running the DWScript test suite through XE 5 trial, and while most of DWScript ran okay under XE5, I noticed the following regression:
- integer divisions by zero aren’t properly wrapped, instead of an EDivByZero, you’ll get an “exception class $C0000094 with message ‘integer divide by zero at 0x0040b14f'” (values will vary) in the IDE debugger. This does seem to affect the ability to trap divisions by zero at runtime (in a simpler console and test apps, trapping worked, in more complex ones, it didn’t, so be wary if you do rely on trapping integer divisions by zero).
- compiler more reliably warns about missing “uses” for inlining.
- some RTL exception message strings got spell-checked (invalid IntToStr f.i.), others got corrupted (some invalid format strings f.i.).
Performance and memory usage throughout the DWS benchmarks and test suite seems essentially unchanged (within a 2% error margin).