DWScript now compatible with Delphi 11

Just pushed a few changes to the DWScript repository for compatibility with the just released Delphi 11 Alexandria.

The only change required was related to a fix of the Delphi compiler, which now properly has integer overflow checks controlled by $OVERFLOWCHECKS while they were previously controlled by $RANGECHECKS.

I also added support for the Delphi 11 dialect for binary literals (starting with %). DWScript already supported binary literals with the “0b” prefix since 2012 (as in C), I had been hoping the % symbol would not be sacrificed for this purpose, but oh well.

To compile you will also need an updated mORMot. Migration to mORMot 2 will take place later this year, and Delphi 11 is expected to become the primary platform for DWScript at the same time (it is still Delphi 10.3 for the time being).

Leave a Reply

Your email address will not be published. Required fields are marked *