[Pas2js] Strict ordinal types

Ralf Quint freedos.la at gmail.com
Tue Jan 16 20:16:46 CET 2018


On 1/15/2018 2:40 PM, gabor wrote:
> Hello!
>
> Could ordinal types be more strict? For example adding var i: byte = 
> 200; ... i:=i+100; will result in i=44 instead of i=300. 
Sorry, but in this case you should get a range check error, as a "byte" 
can never be 300, unless that has changed recently and a byte isn't 8 
bits and therefor in a range of 0..255 anymore...

Ralf

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the Pas2js mailing list