[fpc-pascal] Docs: portability differences between Borland/FPC

Martok listbox at martoks-place.de
Sun Aug 19 14:44:29 CEST 2018


Am 19.08.2018 um 10:08 schrieb Florian Klämpfl:
> Not really, you have also to fix the comments below because as soon as the range is 0..127 and the test is against 127, 
> Delphi shows exactly the same behavior as FPC.
Not really. You don't have to change the range, there is a warning emitted for
the Host Type (I>127 in this case), but codegen works on the worst-case scenario
for the Storage Type, so the expression is never removed. In other words, W1021
is never treated as the same as an actual False constant.


> as soon as [something changes], Delphi shows exactly the same behavior as FPC.

But that's kind of the point of this collection: sometimes the rules intersect,
but for most cases, they don't.




More information about the fpc-pascal mailing list