Re: [fpc-pascal] Class or Record Helper for Interface?

2022-08-27 Thread Sven Barth via fpc-pascal
Anthony Walter schrieb am Sa., 27. Aug. 2022, 22:45: > I'd be all for just eliminating the "class", "record", and "type" helper > and adding support for just using "helper" in all modes. > "type helper" already allows you to use any supported type. There won't be any further changes regarding

Re: [fpc-pascal] Class or Record Helper for Interface?

2022-08-27 Thread Anthony Walter via fpc-pascal
I'd be all for just eliminating the "class", "record", and "type" helper and adding support for just using "helper" in all modes. type TPointHelper = helper for TPoint end; TCanvasHelper = helper for TCanvas end; TDoubleHelper = helper for Double end; TInterfaceHelper = helper fo

Re: [fpc-pascal] Class or Record Helper for Interface?

2022-08-27 Thread Sven Barth via fpc-pascal
Anthony Walter via fpc-pascal schrieb am Sa., 27. Aug. 2022, 15:07: > Ah, it seems the problem is even in {$mode delphi} you must use > {$modeswitch typehelpers} to define a type helper for an interface. > Delphi doesn't support interface helpers, so I don't know whether they'd use "class helper

Re: [fpc-pascal] Class or Record Helper for Interface?

2022-08-27 Thread Marco van de Voort via fpc-pascal
Op 8/27/2022 om 3:06 PM schreef Anthony Walter via fpc-pascal: Ah, it seems the problem is even in {$mode delphi} you must use {$modeswitch typehelpers} to define a type helper for an interface. I put a note on the checklist for the next major version about this to review this. (only review,

Re: [fpc-pascal] Class or Record Helper for Interface?

2022-08-27 Thread Anthony Walter via fpc-pascal
Ah, it seems the problem is even in {$mode delphi} you must use {$modeswitch typehelpers} to define a type helper for an interface. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pasca

[fpc-pascal] Class or Record Helper for Interface?

2022-08-27 Thread Anthony Walter via fpc-pascal
I just tried to write a type / record /class helper for an interface type and the compiler deosn't seem to allow it. Is this allowed and what is the syntax? Also, are multiple type helpers allowed or were they removed? If they are allowed what is the directive?

Re: [fpc-pascal] Teaching Kids Using Free Pascal

2022-08-27 Thread Anthony Walter via fpc-pascal
Thomas, Chimpmunk2D is written in C and I compiled it on Windows using three different compilers, each in an attempt to resolve the problem. I used mingw64 gcc with Linux cross compile, Windows Cygwin, and Windows Msys2. All fail for various reasons. Regarding your missing __imp___acrt_iob_func,

Re: [fpc-pascal] Teaching Kids Using Free Pascal

2022-08-27 Thread Thomas Kurz via fpc-pascal
I currently have only a few missing symbols, mostly math related: Hint: (11030) Start of reading config file P:\Lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.cfg Hint: (11031) End of reading config file P:\Lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.cfg Warning: (11018) You are using the obsolete switch -St

Re: [fpc-pascal] Teaching Kids Using Free Pascal

2022-08-27 Thread Michael Van Canneyt via fpc-pascal
On Sat, 27 Aug 2022, Anthony Walter via fpc-pascal wrote: Some of you might not be aware, but I teach small groups of kids ages 8-16 computer programming and digital electronics. When teaching programming I often use Free Pascal and Lazarus, and try to come up with exciting ideas. Over the p