Re: [fpc-pascal] Legitimate use of for and break

2023-06-15 Thread Steve Litt via fpc-pascal
Hairy Pixels via fpc-pascal said on Fri, 16 Jun 2023 09:57:36 +0700 >> On Jun 16, 2023, at 6:07 AM, Steve Litt via fpc-pascal >> wrote: >> >> Is http://sprunge.us/MOJIg4 a legitimate use of a for loop with >> break? I know there are better ways to do it, but I'm just wondering >> whether it's le

Re: [fpc-pascal] Legitimate use of for and break

2023-06-15 Thread Hairy Pixels via fpc-pascal
> On Jun 16, 2023, at 6:07 AM, Steve Litt via fpc-pascal > wrote: > > Is http://sprunge.us/MOJIg4 a legitimate use of a for loop with break? I > know there are better ways to do it, but I'm just wondering whether > it's legitimate. What are you trying to do exactly? It's an array with a term

[fpc-pascal] Legitimate use of for and break

2023-06-15 Thread Steve Litt via fpc-pascal
Is http://sprunge.us/MOJIg4 a legitimate use of a for loop with break? I know there are better ways to do it, but I'm just wondering whether it's legitimate. SteveT Steve Litt Autumn 2022 featured book: Thriving in Tough Times http://www.troubleshooters.com/bookstore/thrive.htm _

Re: [fpc-pascal] What is -CO ?

2023-06-15 Thread Mattias Gaertner via fpc-pascal
On Thu, 15 Jun 2023 22:00:03 +0200 Jonas Maebe via fpc-pascal wrote: > On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: > > What is -CO? > > > > In the docs I can only find this sentence: > > "Check for possible overflow of integer operations" > > It prints a warning whenever the c

Re: [fpc-pascal] What is -CO ?

2023-06-15 Thread Jonas Maebe via fpc-pascal
On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: What is -CO? In the docs I can only find this sentence: "Check for possible overflow of integer operations" It prints a warning whenever the compiler inserts an implicit type conversion to a type that cannot represent every value of

Re: [fpc-pascal] fpc-pascal Digest, Vol 228, Issue 17

2023-06-15 Thread Rafael Picanço via fpc-pascal
Hi Tomas, On top of your suggestion, the only way to make FPC happy is to assign nil to the type constants and then assign the corresponding pointers to them somewhere: unit eyelink.constants interface const EXTERNAL_DEV_NONE : TGetExButtonStatesFunction = nil; EXTERNAL_DEV_CEDRUS : TGetExBut

Re: [fpc-pascal] Passing around Pascal strings vs AnsiString

2023-06-15 Thread Peter B via fpc-pascal
On 14/06/2023 14:20, Hairy Pixels via fpc-pascal wrote: I was curious, if you had a Pascal (short) string and it was going to be passed around often would that be slower than using an AnsiString since its size is that of a pointer? I always prefer short strings when I know the length will be l