Re: [fpc-pascal] Test Free Pascal program not compiling

2022-09-11 Thread Christo Crause via fpc-pascal
On Mon, 12 Sep 2022, 02:59 Terry A. Haimann via fpc-pascal, < fpc-pascal@lists.freepascal.org> wrote: > Trying to compile a small test pascal program on a arm cpu. I beleive > it is an a53. Libre Le Potato > > I am getting the following error: > > Error: Error while assembling exitcode 1 > >

[fpc-pascal] Test Free Pascal program not compiling

2022-09-11 Thread Terry A. Haimann via fpc-pascal
Trying to compile a small test pascal program on a arm cpu. I beleive it is an a53. Libre Le Potato I am getting the following error: Error: Error while assembling exitcode 1 Thanks in advance, Terry H. ___ fpc-pascal maillist -

Re: [fpc-pascal] Get highest element of a StringList

2022-09-11 Thread James Richters via fpc-pascal
The loops is just an example because in my original post of why I wanted to get the highest element of a stringlist was because I wanted a for loop that wasn't as clumsy as For I:=0 to myStringlist.count-1 Do This came up because thanks to this discussion list, I learned I could use High() and

Re: [fpc-pascal] Why does nested function get corrupted?

2022-09-11 Thread Sven Barth via fpc-pascal
Ondrej Pokorny via fpc-pascal schrieb am So., 11. Sep. 2022, 15:29: > Am 11.09.2022 um 14:22 schrieb Sven Barth via fpc-pascal: > > Ondrej Pokorny via fpc-pascal schrieb > am So., 11. Sep. 2022, 12:18: > >> Shouldn't this assignment be forbidden? >> >> type >> TProc = procedure is nested; >>

Re: [fpc-pascal] Why does nested function get corrupted?

2022-09-11 Thread Ondrej Pokorny via fpc-pascal
Am 11.09.2022 um 14:22 schrieb Sven Barth via fpc-pascal: Ondrej Pokorny via fpc-pascal schrieb am So., 11. Sep. 2022, 12:18: Shouldn't this assignment be forbidden? type TProc = procedure is nested; function TestNested: TProc; begin result := procedure // why

Re: [fpc-pascal] Why does nested function get corrupted?

2022-09-11 Thread Sven Barth via fpc-pascal
Ondrej Pokorny via fpc-pascal schrieb am So., 11. Sep. 2022, 12:18: > Am 11.09.2022 um 11:26 schrieb Sven Barth via fpc-pascal: > > Hairy Pixels schrieb am Sa., 10. Sep. 2022, 03:21: > >> >> >> > On Sep 9, 2022, at 4:48 PM, Sven Barth >> wrote: >> > >> > How about you simply report such

Re: [fpc-pascal] Why does nested function get corrupted?

2022-09-11 Thread Ondrej Pokorny via fpc-pascal
Am 11.09.2022 um 11:26 schrieb Sven Barth via fpc-pascal: Hairy Pixels schrieb am Sa., 10. Sep. 2022, 03:21: > On Sep 9, 2022, at 4:48 PM, Sven Barth wrote: > > How about you simply report such corruptions as bugs? I can always close them as "not a bug" or duplicate if

Re: [fpc-pascal] Get highest element of a StringList

2022-09-11 Thread Sven Barth via fpc-pascal
James Richters via fpc-pascal schrieb am Sa., 10. Sep. 2022, 22:55: > > For some reason > {$Mode FPC} > {$modeswitch typehelpers} > Still had Error: Identifier not found "class" > Because support for the "class" keyword is only available when the modeswitch Class is enabled which is the case

Re: [fpc-pascal] Why does nested function get corrupted?

2022-09-11 Thread Sven Barth via fpc-pascal
Hairy Pixels schrieb am Sa., 10. Sep. 2022, 03:21: > > > > On Sep 9, 2022, at 4:48 PM, Sven Barth > wrote: > > > > How about you simply report such corruptions as bugs? I can always close > them as "not a bug" or duplicate if necessary. > > > > Well I thought the data may have been saved on the

Re: [fpc-pascal] Internal error 2019022201 from function reference

2022-09-11 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am Fr., 9. Sep. 2022, 18:05: > This program gives internal compiler error 2019022201 (Free Pascal > Compiler version 3.3.1 [2022/05/27] for aarch64). Something is wrong with > the PPU. This is a very basic program using function references so it > seems

Re: [fpc-pascal] Getting Shift key with PTCCRT

2022-09-11 Thread wkitty42--- via fpc-pascal
On 9/10/22 10:57 AM, James Richters wrote: Thanks for the suggestion I think the syntax should be: type myKeyEvent = IPTCKeyEvent; Var myShiftStatus : boolean; myShiftStatus := myKeyEvent.Shift; i told you i probably had the syntax wrong :lol: but I get IPTCKeyEvent not found. I wonder if

Re: [fpc-pascal] Get TMethod from function reference

2022-09-11 Thread Ondrej Pokorny via fpc-pascal
Am 09.09.2022 um 00:49 schrieb Hairy Pixels via fpc-pascal: On Sep 8, 2022, at 11:14 AM, Michael Van Canneyt via fpc-pascal wrote: It must keep this information somewhere, but this does not mean you can typecast it to a TMethod. Indeed. I wonder if this information could be exposed by some