Re: [fpc-pascal] Non-initialized member access warning

2023-06-13 Thread Hairy Pixels via fpc-pascal
> On Jun 8, 2023, at 6:01 PM, Sven Barth wrote: > > Please report a bug with a complete example. Better late than never :) https://gitlab.com/freepascal.org/fpc/source/-/issues/40321 Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lis

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-13 Thread Marco van de Voort via fpc-pascal
On 13-6-2023 15:38, Rafael Picanço via fpc-pascal wrote: Thank you Marco, I am elaborating on top of your suggestions. > The problem is that the logical solution, making it a macro, doesn't work, as macro definitions don't export through USES clauses. I think that pre-processor constants with

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-13 Thread Rafael Picanço via fpc-pascal
Thank you Marco, I am elaborating on top of your suggestions. > The problem is that the logical solution, making it a macro, doesn't work, as macro definitions don't export through USES clauses. I think that pre-processor constants with $I would be a valid alternative for using the best solution.

Re: [fpc-pascal] fpc isn't optimised for tail recursion, is it?

2023-06-13 Thread Jean SUZINEAU via fpc-pascal
Le 12/06/2023 à 19:05, Steve Litt via fpc-pascal a écrit : Busted! I used Pascal 1984-1993 So I guess you are not familiar too with the "Result" variable which appeared with Delphi 1 in 1995 if I remember correctly. nextt:= num; can be written to as : Result:= num; https://www.freepascal.or

Re: [fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

2023-06-13 Thread Marco van de Voort via fpc-pascal
On 13-6-2023 05:19, Rafael Picanço via fpc-pascal wrote: (1) I have no idea on how to translate these god-casts, eg., ((getExButtonStates)0), to free pascal. Right now, I think that even if I don't really need them, I just want to understand and learn in the process. The problem is that the