[fpc-devel] Implicit Type Conversion when running with range and overflow checking

Marco van de Voort marcov at stack.nl
Wed Feb 25 10:38:14 CET 2015


In our previous episode, Nikolay Nikolov said:
> > Comments?  I'm guessing this is either specified in the Pascal 
> > standard, or fpc is emulating Delphi behavior.  Nevertheless, the 
> > result seemed non-intuitive enough to me that I wanted to confirm this 
> > was the intended behavior.
> I'm not familiar with Pascal standards (although I thing at least 
> Standard Pascal has only one integer type, so the standard says nothing 
> about mixing different integer types), but this is the BP7 and Delphi 
> behavior.

Lower types are made by subranges. (BYTE = 0..255;), it is types larger than
integer that set TP/FPC/Delphi apart in that sense.



More information about the fpc-devel mailing list