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

2018-08-19 Thread Martok
Am 19.08.2018 um 14:55 schrieb Florian Klämpfl: > Please note again: in general, there are no defined rules for FPC as soon as > range check errors would occur. For FPC, > you are just documenting random *behavior* which might change even with the > next minor release. I know. And I have given

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

2018-08-19 Thread Marco van de Voort
In our previous episode, Martok said: > Am 18.08.2018 um 23:25 schrieb Marco van de Voort: > > Summary: behaviour with range checks off is implementation defined? > No. "implementation different", but not really "implementation defined". > TP and Delphi are fully defined without range checks. In

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

2018-08-19 Thread Florian Klämpfl
Am 19.08.2018 um 15:08 schrieb Martok: But I don't actually want to debate that here, just collect information for users. Well, you have to as you give people the wrong impression that they can control what happens if they suppress/ignore run time errors. _

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

2018-08-19 Thread Martok
Am 18.08.2018 um 23:25 schrieb Marco van de Voort: > Summary: behaviour with range checks off is implementation defined? No. "implementation different", but not really "implementation defined". TP and Delphi are fully defined without range checks. In fact, TP is defined as *having no runtime range

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

2018-08-19 Thread Florian Klämpfl
Am 19.08.2018 um 14:44 schrieb Martok: 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. Please note again: in general, there are no defined rules for F

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

2018-08-19 Thread Martok
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 f

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

2018-08-19 Thread Florian Klämpfl
Am 19.08.2018 um 01:49 schrieb Martok: Am 18.08.2018 um 23:39 schrieb Florian Klämpfl: This is plainly wrong, at least for the older delphis, the host type in delphi will be Byte (or even Shortint). It is actually shortint ... Correct, I was thinking of the default PackEnum. Which of course

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

2018-08-18 Thread Martok
Am 18.08.2018 um 23:39 schrieb Florian Klämpfl: >> This is plainly wrong, at least for the older delphis, the host type in >> delphi will be Byte (or even Shortint). > > It is actually shortint ... Correct, I was thinking of the default PackEnum. Which of course has absolutely nothing to do with

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

2018-08-18 Thread Bart
On Sat, Aug 18, 2018 at 11:52 PM, Bart wrote: > TurboPascal 6.0 will not do that. It will execute the else statment if Just ignore my above post. Made a typo in the if condition Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

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

2018-08-18 Thread Bart
On Sat, Aug 18, 2018 at 10:59 PM, Martok wrote: > There is the old "Porting TP" document at > , but it is rather incomplete (and > probably on an > older language level). It also covers mostly syntactic differences - things a > programmer will notice becaus

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

2018-08-18 Thread Florian Klämpfl
Am 18.08.2018 um 23:26 schrieb Florian Klämpfl: Am 18.08.2018 um 22:59 schrieb Martok: Hi all, There is the old "Porting TP" document at , but it is rather incomplete (and probably on an older language level). It also covers mostly syntactic differences - t

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

2018-08-18 Thread Florian Klämpfl
Am 18.08.2018 um 22:59 schrieb Martok: Hi all, There is the old "Porting TP" document at , but it is rather incomplete (and probably on an older language level). It also covers mostly syntactic differences - things a programmer will notice because of the er

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

2018-08-18 Thread Marco van de Voort
In our previous episode, Martok said: > There is the old "Porting TP" document at > , but it is rather incomplete (and > probably on an older language level). It also covers mostly syntactic > differences - things a programmer will notice because of the error >

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

2018-08-18 Thread Martok
Hi all, There is the old "Porting TP" document at , but it is rather incomplete (and probably on an older language level). It also covers mostly syntactic differences - things a programmer will notice because of the error messages. Since #34140 was again so