Re: [fpc-pascal] What to do to get new users

2024-11-16 Thread Michael Van Canneyt via fpc-pascal
On Sat, 16 Nov 2024, Hairy Pixels via fpc-pascal wrote: On Nov 16, 2024 at 3:13:26 PM, Nikolay Nikolov via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: If you know nothing about the language, the main page explains to you quickly what's the point of the language, and gives you exampl

Re: [fpc-pascal] What to do to get new users

2024-11-30 Thread Michael Van Canneyt via fpc-pascal
On Fri, 29 Nov 2024, Hairy Pixels via fpc-pascal wrote: On Nov 29, 2024 at 8:11:11 AM, James Richters via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: I'm intrigued by FPGUI, I'm trying to build FPGUI on Windows 10, and I'm having some difficulty. When I follow the instructions from

Re: [fpc-pascal] Incremental compiling not working in new version

2024-12-04 Thread Michael Van Canneyt via fpc-pascal
On Wed, 4 Dec 2024, Sven Barth via fpc-pascal wrote: Hairy Pixels via fpc-pascal schrieb am Mi., 4. Dez. 2024, 13:56: Were there known changes in that area since March 3rd 2023? Honestly they were causing so many crashes maybe they got pulled for incremental building. I’d rather take the cr

Re: [fpc-pascal] Incremental compiling not working in new version

2024-12-04 Thread Michael Van Canneyt via fpc-pascal
On Wed, 4 Dec 2024, Sven Barth via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal schrieb am Mi., 4. Dez. 2024, 18:24: @Michael: do you think you can take a look? I also got the feeling that it tries to compile more while nothing changed than with 3.2.2, though I did not yet

Re: [fpc-pascal] fcl-stl docs and examples

2025-02-04 Thread Michael Van Canneyt via fpc-pascal
On Mon, 3 Feb 2025, ppadilcdx--- via fpc-pascal wrote: Is there a reason that the fpc installation does not include the fcl-stl examples and docs in the share/doc directory? I had to download the fpc source to find them (in packages/fcl-stl). No, it is an oversight. Michael.

Re: [fpc-pascal] Procedural parameters

2024-12-15 Thread Michael Van Canneyt via fpc-pascal
On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: Macpascal and Iso pascal have procedural parameters, e.g. function A( function B: double): double; Is there a $modeswitch

Re: [fpc-pascal] Procedural parameters

2024-12-15 Thread Michael Van Canneyt via fpc-pascal
On Sun, 15 Dec 2024, Adriaan van Os via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal wrote: On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: It's not because something is in the pascal standard, that FPC has it. It is. Appendix D6 of the Programmer's Refe

Re: [fpc-pascal] How to compile program from command line on Linux?

2024-12-16 Thread Michael Van Canneyt via fpc-pascal
On Mon, 16 Dec 2024, Bo Berglund via fpc-pascal wrote: I have written a command line utility program on Linux using Lazarus as the IDE. This was done a while ago on an Ubuntu Desktop 20.04 machine, which I normally access using VNC when doing Lazarus work there. Now since a few months the Ti

Re: [fpc-pascal] Procedural parameters

2024-12-16 Thread Michael Van Canneyt via fpc-pascal
On Sun, 15 Dec 2024, Sven Barth via fpc-pascal wrote: Which I paraphrased loosely as: "It's not because something is in the pascal standard, that FPC has it." As with any of the language dialect compatibility modes the point is that FPC can compile code in that dialect, but *not* that cod

Re: [fpc-pascal] Procedural parameters

2024-12-14 Thread Michael Van Canneyt via fpc-pascal
On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote: Macpascal and Iso pascal have procedural parameters, e.g. function A( function B: double): double; Is there a $modeswitch to allow this ? I searched "procedure parameter" and "procedural parameter" in the Language Reference

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread Michael Van Canneyt via fpc-pascal
On Thu, 19 Dec 2024, James Richters via fpc-pascal wrote: I am using ProgProcess to execute a program with data passed as parameters. I'm adding the parameters with this: ProgProcess := TProcess.Create(nil); ProgProcess.Executable := 'cmd.exe'; ProgProcess.Parameters.

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread Michael Van Canneyt via fpc-pascal
On Fri, 20 Dec 2024, Karoly Balogh via fpc-pascal wrote: Hi, On Fri, 20 Dec 2024, Michael Van Canneyt via fpc-pascal wrote: If I compile it with: Free Pascal Compiler version 3.3.1-16969-g798f2ba632-dirty [2024/11/28] for i386 I get almost what I expected, but my #$EE is now been changed

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Michael Van Canneyt via fpc-pascal
On Tue, 21 Jan 2025, Frank McCormick via fpc-pascal wrote: On 2025-01-21 09:00, Michael Van Canneyt via fpc-pascal wrote: On Mon, 20 Jan 2025, Frank McCormick via fpc-pascal wrote: I have been trying out a CRT replacement called NCRT and OCRT and am getting link errors which I can&#

Re: [fpc-pascal] Compile errors

2025-01-24 Thread Michael Van Canneyt via fpc-pascal
On Thu, 23 Jan 2025, Frank McCormick via fpc-pascal wrote: Strange. I know someone who uses ocrt on OpenSuse since years. Maybe he is still on an older version of OpenSuse. I now tested 10 of the provided demos and on my linux mint they all start without problem. This is weird. This

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Michael Van Canneyt via fpc-pascal
On Mon, 20 Jan 2025, Frank McCormick via fpc-pascal wrote: I have been trying out a CRT replacement called NCRT and OCRT and am getting link errors which I can't track down. Originally I was getting compile errors but I sorted that out. Are these units still workable with Free Pascal ? Thes

Re: [fpc-pascal] unixsockets

2025-01-03 Thread Michael Van Canneyt via fpc-pascal
On Sat, 28 Dec 2024, Andrew Haines via fpc-pascal wrote: Hi, is unixsockets.pp in rtl-extra supposed to be included when fpc is built for linux? I ran Yes. It was not built, I added it to fpmake. I also applied the fix you mentioned for the size_t problem. Michael. ___

Re: [fpc-pascal] gmp

2025-02-14 Thread Michael Van Canneyt via fpc-pascal
On Tue, 11 Feb 2025, ppadilcdx--- via fpc-pascal wrote: What else do I need to add to the compile line to use the gmp unit? I added gmp to the use line and it throws an error in compilation: ld: warning: -multiply_defined is obsolete -macosx_version_min has been renamed to -macos_version_mi

Re: [fpc-pascal] Compilation raised exception internally

2025-04-25 Thread Michael Van Canneyt via fpc-pascal
On Fri, 25 Apr 2025, Luca Olivetti via fpc-pascal wrote: Hello, recently I get a lot of these errors (i.e., I modify something, in lazarus click on "compile" or "run", and I get the error). If I then use "clean up & build.." the compilation ends without errors. I recently switched the virt

Re: [fpc-pascal] sqldb, copy table between databases is painfully slow

2025-02-18 Thread Michael Van Canneyt via fpc-pascal
On Tue, 18 Feb 2025, Luca Olivetti via fpc-pascal wrote: Hello, I need to copy a table between an mssql database and a postgresql one. I used a query to obtain the data, a datasource ponting to it and another query using the datasource, the sql being INSERT INTO table (f1,f2,f3...) value

Re: [fpc-pascal] gmp

2025-02-17 Thread Michael Van Canneyt via fpc-pascal
On Fri, 14 Feb 2025, ppadilcdx--- via fpc-pascal wrote: I did copy gmp.pas to another folder and named it mygmp.pas, changed "$linklib gmp.3” to "$linklib gmp.dylib” (just plain gmp did not work). Now examples compile and run with the change to “uses mygmp” and adding opt/homebrew/lib to the

Re: [fpc-pascal] typo in docs

2025-05-19 Thread Michael Van Canneyt via fpc-pascal
On Sun, 18 May 2025, ppadilcdx--- via fpc-pascal wrote: For the functions EndsStr/EndsText in StrUtils, the description starts with "StartsText checks …”; when it should start EndsStr/EndsText respectively. Not sure if I should submit a pull request for just a typo. I fixed the typos. Than

Re: [fpc-pascal] How to make all FPC utils?

2025-05-24 Thread Michael Van Canneyt via fpc-pascal
On Sat, 24 May 2025, Thomas Kurz via fpc-pascal wrote: Pass FPCMAKENEW=/path/to/utils/fpcm/bin/i386-win32/fpcmake.exe correct the path to generated make. I must admit I don't understand this response. First thing is I'm on Linux x64 and I don't think that the `fpcmake.exe` will help. Apart

Re: [fpc-pascal] Question about the Wiki Documentation

2025-05-15 Thread Michael Van Canneyt via fpc-pascal
On Thu, 15 May 2025, Tim Coates via fpc-pascal wrote: Hi Everyone, Is there a problem with https://wiki.freepascal.org/ as in the last days I am getting an "Unable to Connect" error message? I have been wanting to create an account so that I could assist with updating documentation etc. So

Re: [fpc-pascal] Checksum changed bug 15218

2025-06-17 Thread Michael Van Canneyt via fpc-pascal
On Tue, 17 Jun 2025, Mattias Gaertner via fpc-pascal wrote: Hi, What is the state of the bug 15128, that is the infamous checksum changed bug: https://gitlab.com/freepascal.org/lazarus/ccr/-/issues/15218 In the issue Jonas wrote that the only case is a forward function that implements a

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: Hello, In a project I'm using both an sql server database (TMSSQLConnection) and a postgresql one (TPQConnection). One of the TStringField is defined as size 100, but in the sql server it has been changed to to 200. Even without chan

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 14:30, Michael Van Canneyt via fpc-pascal ha escrit: On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: Hello, In a project I'm using both an sql server database (TMSSQLConnection) and a postgresq

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 14:59, Michael Van Canneyt via fpc-pascal ha escrit: That's not what the documentation says https://www.freepascal.org/docs-html/fcl/db/tstringfield.size.html (emphasis mine) "it is the declared *max

Re: [fpc-pascal] TStringField.Size

2025-07-15 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 17:57, Michael Van Canneyt via fpc-pascal ha escrit: On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 14:59, Michael Van Canneyt via fpc-pascal ha escrit: That's not wha

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Jul 2025, Hairy Pixels via fpc-pascal wrote: On Jul 28, 2025 at 1:04:49 AM, Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: Personally, I prefer the backtick solution. The triple quote is slow, it requires postprocessing the string. The ba

[fpc-pascal] Feature "Multiline strings" added

2025-07-27 Thread Michael Van Canneyt via fpc-pascal
Hello, I have added (long overdue) multiline string support to the FPC compiler. It is activated by default in objfpc and delphi modes. if you wish to use it (or disable it), there is a modeswitch: {$modeswitch multilinestrings} or, to disable {$modeswitch multilinestrings-} Due to historic

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Sun, 27 Jul 2025, Michalis Kamburelis wrote: Michael Van Canneyt wrote: Let's delete custom very special FPC variant with ticks. leave only Delphi variant, please. in English it is maybe called as 'align implementation with Delphi'. It is aligned with Delphi ? why? to keep the same so

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Jul 2025, Michalis Kamburelis via fpc-pascal wrote: Michael Van Canneyt wrote: Personally, I prefer the backtick solution. The triple quote is slow, it requires postprocessing the string. The backtick solution needs only one pass. I positively HATE it when people start treating

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Jul 2025, Pierre Muller via fpc-pascal wrote: Le 28/07/2025 à 10:07, Michalis Kamburelis via fpc-pascal a écrit : Michael Van Canneyt wrote: Personally, I prefer the backtick solution. The triple quote is slow, it requires postprocessing the string. The backtick solution needs o

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Jul 2025, Sven Barth via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal schrieb am Mo., 28. Juli 2025, 11:21: If this argument is to carry any weight, then we also need to remove all instances where FPC did things differently from Delphi: [snip] - anonymous functions

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Jul 2025, DougC via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal < mailto:fpc-pascal@lists.freepascal.org > schrieb am Mo., 28. Juli 2025, 11:21: If this argument is to carry any weight, then we also need to remove all instances where FPC did things differentl

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-27 Thread Michael Van Canneyt via fpc-pascal
On Sun, 27 Jul 2025, Alexey T. via fpc-pascal wrote: hello, Let's delete custom very special FPC variant with ticks. leave only Delphi variant, please. in English it is maybe called as 'align implementation with Delphi'. It is aligned with Delphi ? why? to keep the same source when cha

Re: [fpc-pascal] Feature "Multiline strings" added

2025-07-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Jul 2025, Hairy Pixels via fpc-pascal wrote: On Jul 28, 2025 at 10:13:20 AM, Martin Frb via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: Or have array element index done different? type TFooArray = array (.0..9.) of Byte; SomeFooArray(.3.) := 1; Oh wait, that compil

Re: [fpc-pascal] TIniFile crash

2025-07-30 Thread Michael Van Canneyt via fpc-pascal
On Tue, 29 Jul 2025, James Richters via fpc-pascal wrote: I will try just creating a temp file, and once it’s completed delete the original file then rename the temp file to the correct name, it’s a good idea, and a least I will now that nothing I am doing is trying to access the file… beca

Re: [fpc-pascal] fpc 3.3.1 compile on darwin aarch64 broken?

2025-08-01 Thread Michael Van Canneyt via fpc-pascal
Hi, I applied a patch that should fix the issue. Michael. On Fri, 1 Aug 2025, Mattias Gaertner via fpc-pascal wrote: Hi, Compiling fpc 3.3.1 with fpc 3.2.2 as starting compiler on macos 15.5 aarch64 stops on linking fppkg: Target OS: Darwin for AArch64 Compiling fppkg/fppkg.pp Assemblin

<    1   2   3   4   5   6