Re: [fpc-pascal] Compilation raised exception internally

2025-04-25 Thread Luca Olivetti via fpc-pascal
El 25/4/25 a les 14:24, Michael Van Canneyt via fpc-pascal ha escrit: Try to make sure you don't have circular references. It happens often in such cases. Ouch, that's probably it. I usually avoid circular references but in this project I have a couple, I'll either have to try to untangle

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] Exception handling and .dylibs on MacOS

2025-04-04 Thread Sven Barth via fpc-pascal
Adriaan van Os schrieb am Fr., 4. Apr. 2025, 15:30: > Sven Barth wrote: > > Adriaan van Os mailto:adri...@adriaan.biz>> > > schrieb am Do., 3. Apr. 2025, 14:47: > > > > Well, in what form will a patch along these lines be accepted ? I > > really need this to be fixed. > > > > > > In no fo

Re: [fpc-pascal] Exception handling and .dylibs on MacOS

2025-04-04 Thread Adriaan van Os via fpc-pascal
Sven Barth wrote: Adriaan van Os mailto:adri...@adriaan.biz>> schrieb am Do., 3. Apr. 2025, 14:47: Well, in what form will a patch along these lines be accepted ? I really need this to be fixed. In no form, cause this is not a way in which we want to see this fixed. So, how are you

Re: [fpc-pascal] FPC 3.2.4 for ppc64le

2025-03-30 Thread Martin Guy via fpc-pascal
On 29/03/25 20:03, Tobias Giesen via fpc-pascal wrote: Is it possible for somebody to create a little endian release? Can I also suggest an x86-32 tarball, as I'm tracking an apparent inaccuracy in the 64-bit math library not present in the 32-bit version, which gives the same results as the equ

Re: [fpc-pascal] Lazarus Release Candidate 3 of 4.0

2025-03-25 Thread Mattias Gaertner via fpc-pascal
On 3/25/25 15:02, Martin Guy via fpc-pascal wrote: On 25/03/25 13:55, Mattias Gaertner via fpc-pascal wrote: The Lazarus team is glad to announce the third release candidate of Lazarus 4.0. What is Lazarus? I have been unable to find anything on its web sites that say what it is or what it do

Re: [fpc-pascal] Slightly different numerical results with 32-bit and 64-bit fpc

2025-03-22 Thread Martin Guy via fpc-pascal
Sorry about that. Thunderbird seems to have sent the Draft last night before it was ready. On 20/03/25 19:55, Martin Guy wrote: I'm resurrecting a software to do DolbyB encoding and decoding in software >but I'm finding that the resulting wave files, when it's compiled and run > on 32-bit a

Re: [fpc-pascal] Broken code with PEEPHOLE & REGVAR

2025-03-07 Thread Sven Barth via fpc-pascal
Peter B schrieb am Di., 4. März 2025, 22:48: > Back in 2022, I did expect that the release 3.2.4, including this fix, > would have been out by now. > > Is it possible, that this fix could be applied as a patch to 3.2.2 > (which is what all the Linux distributions are still using). > i.e. is the

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Bo Berglund via fpc-pascal
On Tue, 25 Feb 2025 22:47:29 +0100, Tomas Hajny via fpc-pascal wrote: >On 2025-02-25 22:09, Jean SUZINEAU via fpc-pascal wrote: >> I haven't done it recently but basically on Windows you have keys in >> the registry under HKEY_CLASSES_ROOT to associate your program with a >> specific file extensi

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Tomas Hajny via fpc-pascal
On 2025-02-25 22:09, Jean SUZINEAU via fpc-pascal wrote: I haven't done it recently but basically on Windows you have keys in the registry under HKEY_CLASSES_ROOT to associate your program with a specific file extension. You can view the registry with regedit. . . I'd add that you can define

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Jean SUZINEAU via fpc-pascal
I haven't done it recently but basically on Windows you have keys in the registry under HKEY_CLASSES_ROOT to associate your program with a specific file extension. You can view the registry with regedit. Your application is called with the filename as parameter on the command line.

Re: [fpc-pascal] Adding command line parameter to GUI application?

2025-02-25 Thread Luca Olivetti via fpc-pascal
El 25/2/25 a les 21:28, Bo Berglund via fpc-pascal ha escrit: I want the program to load a video file if it appears in the command line so it can be immediately played rather than having to click the OpenFile button and navigate to the video and select it. Any ideas, suggestions, links? https

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Tomas Hajny via fpc-pascal
On 2025-02-24 12:44, Michalis Kamburelis via fpc-pascal wrote: Karoly Balogh wrote: . . 3. Discussions whether language X is good or bad should be an independent discussion, in an independent thread(s), IMHO. Because . . ...and a different mailing list (in particular, fpc-other). Tomas

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Tomas Hajny via fpc-pascal
On 2025-02-24 11:22, Arne Hanssen via fpc-pascal wrote: Den 24.02.2025 09:27, skreiv Karoly Balogh via fpc-pascal: On Sat, 22 Feb 2025, DougC via fpc-pascal wrote: Hi, [...] As a former OS/2 user I find REXX (Regina Rexx nowadays) very versatile and useful - and easy to learn.  But you're

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Mattias Gaertner via fpc-pascal
On 2/21/25 12:04, Anthony Walter via fpc-pascal wrote: [...] Javascript: let data = { name: "James", age: 25 }; function update(name) { data.name = name; } function verify(note) { console.log("received note " + note); console.log("data name is " + data.name); hello(data, " messa

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Michalis Kamburelis via fpc-pascal
Karoly Balogh wrote: > We're in the offtopic again, but I really hate this kind of elitism. As a > kid I started with BASIC - on various Commodore home computers then also > on early IBM PCs - and I hope to think I grew up to be a semi-decent > programmer. At least I can fix your Pascal compiler fo

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Arne Hanssen via fpc-pascal
Den 24.02.2025 09:27, skreiv Karoly Balogh via fpc-pascal: Hi, On Sat, 22 Feb 2025, DougC via fpc-pascal wrote: Why not? Because it helps a distinctly inferior language design to perpetuate. It used to be said that any programmer that first learned to program using BASIC was ruined for life.

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-24 Thread Karoly Balogh via fpc-pascal
Hi, On Sat, 22 Feb 2025, DougC via fpc-pascal wrote: > Why not? Because it helps a distinctly inferior language design to > perpetuate. > > It used to be said that any programmer that first learned to program > using BASIC was ruined for life. I would say the same thing about > Javascript.  We'r

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-23 Thread Travis Siegel via fpc-pascal
I'm not a fan of javascript myself, but I see nothing wrong with having it as an option.  It's never bad to have another tool in the toolbox.  I can see situations where it would be useful.  I'd not be likely to use it, because javascript isn't my thing, but I certainly can easily point to proj

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-22 Thread DougC via fpc-pascal
Why not? Because it helps a distinctly inferior language design to perpetuate. It used to be said that any programmer that first learned to program using BASIC was ruined for life. I would say the same thing about Javascript.  Doug C. On Fri, 21 Feb 2025 17:46:49 -0500 wrote ---

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-22 Thread Arne Hanssen via fpc-pascal
Den 21.02.2025 19:49, skreiv Peter B via fpc-pascal: On 21/02/2025 02:26, Hairy Pixels via fpc-pascal wrote: What do you mean? like syntax styling? Hi Ryan, I'm looking for a diff tool that would show a/ foo := false; b/ foo := true; as differences worth reporting, but would suppress a/ F

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-21 Thread Peter B via fpc-pascal
On 21/02/2025 02:26, Hairy Pixels via fpc-pascal wrote: What do you mean? like syntax styling? Hi Ryan, I'm looking for a diff tool that would show a/ foo := false; b/ foo := true; as differences worth reporting, but would suppress a/ Foo := False; b/ foo  :=   false; as these changes have

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-21 Thread Peter B via fpc-pascal
On 21/02/2025 01:33, Wayne Sherman via fpc-pascal wrote: Peter B wrote: I'm wondering if there is any diff tool out there, that caters for Pascal syntax, so can filter out the noise from reformatting etc. Beyond Compare https://www.scootersoftware.com/ (30-day free trial, but well worth buying

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread DougC via fpc-pascal
I am also allergic to javascript! Consider Lua instead. Doug C. On Fri, 21 Feb 2025 07:35:39 -0500 Alexey T. via fpc-pascal wrote --- Scripting is good thing. But I hate JS. No mandatory quotes around dict keys. Arrow functions which are sugar and not needed. etc etc. I sugg

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread Alexey T. via fpc-pascal
Scripting is good thing. But I hate JS. No mandatory quotes around dict keys. Arrow functions which are sugar and not needed. etc etc. I suggest to use Python. Python-for-Lazarus is in the github. I like Python! Alexey ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-20 Thread DougC via fpc-pascal
Beyond Compare is the single most valuable utility I have bought in 30 years of PC use. Highly recommended! On Thu, 20 Feb 2025 20:33:41 -0500 Wayne Sherman via fpc-pascal wrote --- Peter B wrote: > I'm wondering if there is any diff tool out there, > that caters for Pascal synta

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-20 Thread Hairy Pixels via fpc-pascal
What do you mean? like syntax styling? I use Sublime Merge as my git client and it styles Pascal syntax. Regards, Ryan Joseph On Feb 21, 2025 at 2:05:03 AM, Peter B via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Hi, > > I'm wondering if there is any diff tool out there, > that c

Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-20 Thread Wayne Sherman via fpc-pascal
Peter B wrote: > I'm wondering if there is any diff tool out there, > that caters for Pascal syntax, so can filter out > the noise from reformatting etc. Beyond Compare https://www.scootersoftware.com/ (30-day free trial, but well worth buying a license) (Beyond Compare is itself written using Del

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

2025-02-18 Thread Luca Olivetti via fpc-pascal
El 18/2/25 a les 14:49, Michael Van Canneyt via fpc-pascal ha escrit: 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

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] gmp

2025-02-14 Thread ppadilcdx--- via fpc-pascal
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 link search path. So good to go. For next release can we

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] rtl-generics

2025-02-08 Thread Mattias Gaertner via fpc-pascal
On 2/8/25 11:45, Guillermo Martínez Jiménez via fpc-pascal wrote: Seeing the error line (FItems: ^TArray;) I think it's fpdoc's fault. Seems that it doesn't recognize it as a specialization and gets confused by finding a '<' character out of place (from it's point of view). Please create an

Re: [fpc-pascal] rtl-generics

2025-02-08 Thread Guillermo Martínez Jiménez via fpc-pascal
Seeing the error line (FItems: ^TArray;) I think it's fpdoc's fault. Seems that it doesn't recognize it as a specialization and gets confused by finding a '<' character out of place (from it's point of view). El Fri, 7 Feb 2025 11:05:01 -0800 ppadilcdx--- via fpc-pascal escribió: > Was trying

Re: [fpc-pascal] I need to have launcher intent compatible with Android 14

2025-02-05 Thread Wayne Sherman via fpc-pascal
On Tue, Feb 4, 2025 Mgr. Janusz Chmiel wrote: >. App can be installed, but user is > helpless to find its launcher at The launcher desktop. > Here is The short intent. > > > > > > I have got AN error from Android 14 from ADB that Intents must be > spe

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

2025-02-04 Thread ppadilcdx--- via fpc-pascal
FYI: A related case is rtl-generics, although there are some examples in the installed share/doc, there are many more examples in the fpc source packages/rtl-generics. Thanks. Pete > On Feb 4, 2025, at 1:49 AM, Michael Van Canneyt via fpc-pascal > wrote: > > > > On Mon, 3 Feb 2025, ppadilc

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] Question about tprocess from fpc

2025-01-30 Thread n7800 via fpc-pascal
You are reading the output incorrectly, this should be done in a loop:   https://wiki.lazarus.freepascal.org/Executing_External_Programs#Reading_large_output   To avoid doing this manually, use the "RunCommand":   https://wiki.lazarus.freepascal.org/Executing_External_Programs#(Process.)RunCommand

Re: [fpc-pascal] Compile errors

2025-01-25 Thread Frank McCormick via fpc-pascal
On 1/24/25 4:11 AM, Michael Van Canneyt via fpc-pascal wrote: It seems FPC on my OpenSuse installation is broken somehow. I have removed FPC and installed it directly from the RPM downloads on the Free Pascal site and it suffered the same problems. I then re-installed the OpenSuse Tumbleweed

Re: [fpc-pascal] Inlined functions from compiled units

2025-01-24 Thread Marco van de Voort via fpc-pascal
Op 24-1-2025 om 13:10 schreef Hairy Pixels via fpc-pascal: The FPC implementation inlines if the unit-with-function-to-be-inlined was compiled before the unit that references the inline function. That is within the /same/ (single) build, but also has as disadvantage afaik that if it is NOT like

Re: [fpc-pascal] Question about tprocess from fpc

2025-01-24 Thread Marco van de Voort via fpc-pascal
Op 24-1-2025 om 15:10 schreef Terry A. Haimann via fpc-pascal: I recently tried to execute a sed command from Lazarus, but didn't receive any output. But when I imbedded the sed command in a script and then executed the script from tprocess, it worked fine. Why is this? I have run across s

Re: [fpc-pascal] Inlined functions from compiled units

2025-01-24 Thread Hairy Pixels via fpc-pascal
Since I’m topic on inlines. FPC always inlines even with debug flags and makes certain files impossible to break on. Is there a way to disable that? I would expect inlining to be off so you can could debug. I don’t have -Si on either which suggests it must be on to inline but I don’t see that happe

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] Inlined functions from compiled units

2025-01-24 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 5:46:40 PM, Marco van de Voort via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Slightly different. LTO afaik requires multiple compiles where the later > build uses info from the earlier build. > > The FPC implementation inlines if the unit-with-function-to-be-inline

Re: [fpc-pascal] Inlined functions from compiled units

2025-01-24 Thread Marco van de Voort via fpc-pascal
Op 24-1-2025 om 09:58 schreef Hairy Pixels via fpc-pascal: On Jan 24, 2025 at 2:01:09 PM, Sven Barth via fpc-pascal wrote: When a function has inlining enabled (either explicit with the inline directive or implicit through AutoInline optimization) then in addition to generating its code to th

Re: [fpc-pascal] Inlined functions from compiled units

2025-01-24 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 2:01:09 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > When a function has inlining enabled (either explicit with the inline > directive or implicit through AutoInline optimization) then in addition to > generating its code to the object file (for dir

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

2025-01-24 Thread Marco van de Voort via fpc-pascal
Op 24-1-2025 om 07:56 schreef Sven Barth via fpc-pascal: Hairy Pixels via fpc-pascal schrieb am Fr., 24. Jan. 2025, 06:16: Feels to me like manual memory management and exceptions don’t mix well. I use exceptions in C# and Swift and they don’t require all this boiler plate to prev

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

2025-01-23 Thread Nikolay Nikolov via fpc-pascal
On 1/24/25 8:38 AM, Hairy Pixels via fpc-pascal wrote: On Jan 24, 2025 at 1:34:26 PM, Nikolay Nikolov via fpc-pascal wrote: Doesn't matter whether they're handled in the same scope or not. It's the same code. Usually they're not handled in the same scope, but in a very distant place. That's u

Re: [fpc-pascal] Inlined functions from compiled units

2025-01-23 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am Fr., 24. Jan. 2025, 02:17: > Is the compiler actually able to inline functions which are used from a > unit? When a unit is used it’s compiled to a .o file and linked so the > compiler doesn’t have access to the source code anymore and thus can’t > inline I

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

2025-01-23 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am Fr., 24. Jan. 2025, 06:16: > Feels to me like manual memory management and exceptions don’t mix well. I > use exceptions in C# and Swift and they don’t require all this boiler plate > to prevent memory leaks. > Don't know about Swift, but C# uses garbage co

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

2025-01-23 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 1:34:26 PM, Nikolay Nikolov via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Doesn't matter whether they're handled in the same scope or not. It's the > same code. Usually they're not handled in the same scope, but in a very > distant place. That's usually when except

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

2025-01-23 Thread Nikolay Nikolov via fpc-pascal
On 1/24/25 8:12 AM, Hairy Pixels via fpc-pascal wrote: On Jan 24, 2025 at 12:43:51 PM, Nikolay Nikolov via fpc-pascal wrote: That's not what exceptions are meant to be used for, though. What you describe is called a program "defect". When you encounter a "defect" in your program, you terminat

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

2025-01-23 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 12:43:51 PM, Nikolay Nikolov via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > That's not what exceptions are meant to be used for, though. What you > describe is called a program "defect". When you encounter a "defect" in > your program, you terminate the program. The

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

2025-01-23 Thread Nikolay Nikolov via fpc-pascal
On 1/24/25 7:16 AM, Hairy Pixels via fpc-pascal wrote: On Jan 24, 2025 at 11:20:02 AM, Nikolay Nikolov via fpc-pascal wrote: As you can see, it's more complicated and more error prone. You can simplify it a little bit with goto, but it will never be better, compared to try...finally ok, I

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

2025-01-23 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 11:20:02 AM, Nikolay Nikolov via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > As you can see, it's more complicated and more error prone. You can > simplify it a little bit with goto, but it will never be better, compared > to try...finally > > ok, I’ve never used exc

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

2025-01-23 Thread Nikolay Nikolov via fpc-pascal
On 1/24/25 4:04 AM, Hairy Pixels via fpc-pascal wrote: On Jan 24, 2025 at 8:38:25 AM, Nikolay Nikolov via fpc-pascal wrote: Maybe because there's a much better way to write it: procedure foo(); var   s1: TStringList = nil;   s2: TStringList = nil;   s3: TStringList = nil; begin   try     s1:=

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

2025-01-23 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 8:38:25 AM, Nikolay Nikolov via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Maybe because there's a much better way to write it: > > procedure foo(); > var > s1: TStringList = nil; > s2: TStringList = nil; > s3: TStringList = nil; > begin > try > s1:=TStr

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

2025-01-23 Thread Nikolay Nikolov via fpc-pascal
On 1/24/25 3:21 AM, Hairy Pixels via fpc-pascal wrote: On Jan 24, 2025 at 2:10:53 AM, Santi via fpc-pascal wrote: procedure foo() var  s1: TStringList;  s2: TStringList;  s3: TStringList; begin  s1:=TStringList.create;  try    s2:=TStringList.create;    try s3:=TStringList.create;      tr

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

2025-01-23 Thread Hairy Pixels via fpc-pascal
On Jan 24, 2025 at 2:10:53 AM, Santi via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > procedure foo() > var > s1: TStringList; > s2: TStringList; > s3: TStringList; > begin > s1:=TStringList.create; > try >s2:=TStringList.create; >try > s3:=TStringList.create; > t

Re: [fpc-pascal] Compile errors

2025-01-23 Thread Frank McCormick via fpc-pascal
On 2025-01-21 10:15, Michael Van Canneyt via fpc-pascal wrote: 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

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

2025-01-23 Thread Santi via fpc-pascal
El 16/10/2024 a las 19:03, Guillermo Martínez Jiménez via fpc-pascal escribió: Prease DON'T add garbage collector. IMO it isn't a good idea. I had very bad experiences with it. Unless somebody found a new magic algorithm in the last decade... El Wed, 16 Oct 2024 04:49:44 -0700 Hairy Pixels via

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Christo Crause via fpc-pascal
On Tue, 21 Jan 2025, 19:24 Frank McCormick via fpc-pascal, < fpc-pascal@lists.freepascal.org> wrote: > > I guess you are reponding to the first message I posted to the list > yesterday when I was trying to compile the ncrt package I had downloaded > from the net. That was BEFORE I realized the who

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Frank McCormick via fpc-pascal
On 2025-01-21 11:05, Christo Crause via fpc-pascal wrote: On Tue, Jan 21, 2025 at 2:34 PM Frank McCormick via fpc-pascal pas...@lists.freepascal.org > wrote: Free Pascal Compiler version 3.2.2 [2025/01/10] for x86_64 Copyright (c) 1993-2021 by

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Christo Crause via fpc-pascal
On Tue, Jan 21, 2025 at 2:34 PM Frank McCormick via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Free Pascal Compiler version 3.2.2 [2025/01/10] for x86_64 > Copyright (c) 1993-2021 by Florian Klaempfl and others > Target OS: Linux for x86-64 > Compiling ncrt.pp > ncrt.inc(225,11) Error:

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't tra

Re: [fpc-pascal] Compile errors

2025-01-21 Thread Frank McCormick via fpc-pascal
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't track down. Originally I was getting compile errors but I sorted

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] Sockets programming in Linux

2025-01-20 Thread Duke Normandin via fpc-pascal
Thx - I’ll have a look at it > On Jan 20, 2025, at 4:19 AM, Dennis via fpc-pascal > wrote: > >  > On 11/01/2025 8:46 pm, Duke Normandin via fpc-pascal wrote: >> I’ve Googled my butt off looking for fpc/pascal examples >> /tutorials on writing a simple tcp client and server. NO JOY! Anybody go

Re: [fpc-pascal] Sockets programming in Linux

2025-01-20 Thread Dennis via fpc-pascal
On 11/01/2025 8:46 pm, Duke Normandin via fpc-pascal wrote: I’ve Googled my butt off looking for fpc/pascal examples /tutorials on writing a simple tcp client and server. NO JOY! Anybody got any ideas? TIA — Duke Sent from my iPhone ___ fpc-pascal mail

Re: [fpc-pascal] Sockets programming in Linux

2025-01-13 Thread Duke Normandin via fpc-pascal
> On Jan 13, 2025, at 12:58 AM, n7800 via fpc-pascal > wrote: > >  > For example, you might find the Synapse package useful: > https://wiki.freepascal.org/Synapse Thx! Sadly I don’t speak OOP. Plain old Pascal is my bag! Thx again….___ fpc-pascal

Re: [fpc-pascal] Sockets programming in Linux

2025-01-12 Thread n7800 via fpc-pascal
For example, you might find the Synapse package useful:  https://wiki.freepascal.org/Synapse           >Воскресенье, 12 января 2025, 14:04 +05:00 от Duke Normandin via fpc-pascal >: >  >I’ve Googled my butt off looking for fpc/pascal examples >/tutorials on writing a simple tcp client and serve

Re: [fpc-pascal] Sockets programming in Linux

2025-01-12 Thread Hairy Pixels via fpc-pascal
Here’s what ChatGPT says. It just used the UNIX sockets API so nothing different from what you’d see in C. Looks pretty much correct to me but I didn’t try to build it. program TCPClient; uses SysUtils, Sockets; const HOST = '127.0.0.1'; PORT = 12345; var ClientSocket: LongInt; Addres

Re: [fpc-pascal] Set limitations

2025-01-11 Thread Hairy Pixels via fpc-pascal
On Jan 11, 2025 at 10:53:36 PM, Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > Set are a minimum of 4 Byte by default cause that's how Delphi does them. > Ifets you want smaller sets then use the $PackSets directive as Martin had > written. > I did not know this existed. I

Re: [fpc-pascal] Set limitations

2025-01-11 Thread Thomas Kurz via fpc-pascal
I always use the one from generics.collections - Original Message - From: Alexey T. via fpc-pascal To: FPC-Pascal users discussions Sent: Saturday, January 11, 2025, 17:32:49 Subject: [fpc-pascal] Set limitations > so it makes more sense > to use a dedicated type instead (e.g. a hash s

Re: [fpc-pascal] Set limitations

2025-01-11 Thread Alexey T. via fpc-pascal
so it makes more sense to use a dedicated type instead (e.g. a hash set or something like that) I found these implementations of hash set (origial is from Java, as search shows): https://wiki.freepascal.org/LGenerics - hashset (unit lgHashSet) - fine-grained concurrent hashset (unit lgHashS

Re: [fpc-pascal] Set limitations

2025-01-11 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am Sa., 11. Jan. 2025, 14:17: > I was curious, is there any practical limit on the size of a set (32 bits > and 256 values) and why they couldn’t be 64 bit or any other arbitrary > size? The floor seems to be 4 bytes too but why not allow smaller sizes to > sav

Re: [fpc-pascal] Set limitations

2025-01-11 Thread Martin Frb via fpc-pascal
On 11/01/2025 14:57, Hairy Pixels via fpc-pascal wrote: On Jan 11, 2025 at 8:17:33 PM, Hairy Pixels wrote: I was curious, is there any practical limit on the size of a set (32 bits and 256 values) and why they couldn’t be 64 bit or any other arbitrary size? The floor seems to be 4 bytes too bu

Re: [fpc-pascal] Set limitations

2025-01-11 Thread Hairy Pixels via fpc-pascal
On Jan 11, 2025 at 8:17:33 PM, Hairy Pixels wrote: > I was curious, is there any practical limit on the size of a set (32 bits > and 256 values) and why they couldn’t be 64 bit or any other arbitrary > size? The floor seems to be 4 bytes too but why not allow smaller sizes to > save memory? Perh

Re: [fpc-pascal] InterlockedExchangeAdd64

2025-01-11 Thread Jonas Maebe via fpc-pascal
On 11/01/2025 07:53, Adriaan van Os via fpc-pascal wrote: Am 10.01.2025 um 15:43 schrieb Adriaan van Os via fpc-pascal: But now I install a system.ErrorProc and run the same program. It emits, instead of the EBusError, Runtime Error 214. This puzzles me. This is as designed, because the Er

Re: [fpc-pascal] InterlockedExchangeAdd64

2025-01-10 Thread Adriaan van Os via fpc-pascal
Sven Barth via fpc-pascal wrote: Am 10.01.2025 um 15:43 schrieb Adriaan van Os via fpc-pascal: I have an arm64 (aarch64) test program on MacOS that calls InterlockedExchangeAdd64 with a target variable that is not 8-byte aligned. Running the test program emits "EBusError: Bus error or misali

Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-10 Thread M B via fpc-pascal
Yes, thank you. I found out about wipfc. Unfortunately the quick_quide seems partly unimplemented. But there are lots of examples and other docs, so. it's good anyway. Regard Mikael Backman Den lör 11 jan. 2025 kl 01:23 skrev Andrew Haines via fpc-pascal < fpc-pascal@lists.freepascal.org>: > > O

Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-10 Thread Andrew Haines via fpc-pascal
On 1/8/25 12:02 PM, M B via fpc-pascal wrote: I have googled for a reader for this format but can't find one. I found a web page claiming to read this format but it didn't work. Am I misunderstanding something? The file is under /docs/quick_guide  in the repository. for fpGUI on github. ipf

Re: [fpc-pascal] InterlockedExchangeAdd64

2025-01-10 Thread Sven Barth via fpc-pascal
Am 10.01.2025 um 15:43 schrieb Adriaan van Os via fpc-pascal: I have an arm64 (aarch64) test program on MacOS that calls InterlockedExchangeAdd64 with a target variable that is not 8-byte aligned. Running the test program emits "EBusError: Bus error or misaligned data access". So far so goo

Re: [fpc-pascal] InterlockedExchangeAdd64

2025-01-10 Thread Adriaan van Os via fpc-pascal
Is this really a bug? This depends on what you do in your ErrorProc implementation, doesn't it? Do a writeln the runtime number and break. But normally, a bus error, doesn't call into System.ErrorProc. Regards, Adriaan van Os ___ fpc-pascal mai

Re: [fpc-pascal] InterlockedExchangeAdd64

2025-01-10 Thread Tomas Hajny via fpc-pascal
On 2025-01-10 15:43, Adriaan van Os via fpc-pascal wrote: I have an arm64 (aarch64) test program on MacOS that calls InterlockedExchangeAdd64 with a target variable that is not 8-byte aligned. Running the test program emits "EBusError: Bus error or misaligned data access". So far so good. But n

Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-08 Thread Peter Blackman via fpc-pascal
On 2nd thoughts it is probably not docview. I built docview, but it will not open this file. Docview files are .inf not .ipf However, it is plain text, so readable in any text editor, but no neat formatting of course. ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-08 Thread Peter B via fpc-pascal
On 08/01/2025 17:02, M B via fpc-pascal wrote: I have googled for a reader for this format but can't find one. I found a web page claiming to read this format but it didn't work. Am I misunderstanding something? The file is under /docs/quick_guide  in the repository. for fpGUI on github. Rega

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

2025-01-06 Thread Wayne Sherman via fpc-pascal
Michael Van Canneyt wrote: > My wife creates websites for a living. > I nearly had to re-animate her after she looked at the FPC website. > The FPC website is a no-go area for her since that time. > > Hence my intent to re-open the debate. I ran across this 15 min lightning talk from FOSDEM 2024 t

Re: [fpc-pascal] External library name

2025-01-05 Thread Tony Whyman via fpc-pascal
Having stumbled over this problem last year, I now have a very simple rule (and which seems to work). If you are linking with an external static library (e.g. libssl.a) then you omit the external library name on each function call, but must include a $LINKLIB e.g. ($LINKLIB ssl.a}. If you ar

Re: [fpc-pascal] External library name

2025-01-05 Thread Marco van de Voort via fpc-pascal
Op 5-1-2025 om 13:23 schreef Marco van de Voort via fpc-pascal: Op 5-1-2025 om 10:43 schreef Jonas Maebe via fpc-pascal: That said, Darwin also uses two-level namespaces: https://blog.darlinghq.org/2018/07/mach-o-linking-and-loading-tricks.html#two-level-symbol-namespace . However, it doe

Re: [fpc-pascal] External library name

2025-01-05 Thread Marco van de Voort via fpc-pascal
Op 5-1-2025 om 10:43 schreef Jonas Maebe via fpc-pascal: That said, Darwin also uses two-level namespaces: https://blog.darlinghq.org/2018/07/mach-o-linking-and-loading-tricks.html#two-level-symbol-namespace . However, it does not do this through name mangling. The linker simply encodes in

Re: [fpc-pascal] External library name

2025-01-05 Thread Hairy Pixels via fpc-pascal
On Jan 5, 2025 at 6:45:49 PM, Tomas Hajny wrote: > As you might have noticed, it's simply a more general solution allowing > to cover all target platforms supporting dynamic libraries in a more or > less equal way. Yeah if DLLs have their own namepace and $LINKLIB doesn’t propagate to all exte

Re: [fpc-pascal] External library name

2025-01-05 Thread Tomas Hajny via fpc-pascal
On 2025-01-05 12:36, Hairy Pixels via fpc-pascal wrote: On Jan 5, 2025 at 4:43:39 PM, Jonas Maebe via fpc-pascal wrote: That said, Darwin also uses two-level namespaces: https://blog.darlinghq.org/2018/07/mach-o-linking-and-loading-tricks.html#two-level-symbol-namespace . However, it does n

Re: [fpc-pascal] External library name

2025-01-05 Thread Hairy Pixels via fpc-pascal
On Jan 5, 2025 at 4:43:39 PM, Jonas Maebe via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > That said, Darwin also uses two-level namespaces: > > https://blog.darlinghq.org/2018/07/mach-o-linking-and-loading-tricks.html#two-level-symbol-namespace > . However, it does not do this through

Re: [fpc-pascal] Trying to compile fpGUI on Win 11

2025-01-05 Thread James Richters via fpc-pascal
I just ran into this… After a lot of doodling around and eventually fixing it myself, I found it was already fixed years ago, but the fix never made it to the version on SourceForge. It’s been fixed in the GitHub version in the Maint branch Here’s the link: https://github.com/graemeg/fpGUI/tree/

Re: [fpc-pascal] External library name

2025-01-05 Thread Jonas Maebe via fpc-pascal
On 05/01/2025 07:15, Hairy Pixels via fpc-pascal wrote: On Jan 5, 2025 at 11:53:36 AM, Adriaan van Os via fpc-pascal > wrote: This is a habit from the WIndows and Delphi world. In a one-levell namespace on MacOS, the dll name is superflouous. Note that Obj

Re: [fpc-pascal] External library name

2025-01-04 Thread Hairy Pixels via fpc-pascal
On Jan 5, 2025 at 11:53:36 AM, Adriaan van Os via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > This is a habit from the WIndows and Delphi world. In a one-levell > namespace on MacOS, the dll name > is superflouous. Note that ObjC symbols are always global ,which implies a > one-level n

Re: [fpc-pascal] External library name

2025-01-04 Thread Adriaan van Os via fpc-pascal
Hairy Pixels via fpc-pascal wrote: I see this pattern in C translated header often but I’ve honestly never understood it entirely. Why does this “cDllName" need to be added to every single function which you could just use {$linklib }? This is a habit from the WIndows and Delphi world. In

Re: [fpc-pascal] Lessons from Thunderbird on sustaining an open source project

2025-01-04 Thread Wayne Sherman via fpc-pascal
Wayne Sherman wrote: > (recommend watching at 1.5x speed: using firefox | video player right > click menu | speed) To change playback speed in Chrome | in video player, use the three dots menu at lower right. ___ fpc-pascal maillist - fpc-pascal@lists.

  1   2   3   4   5   6   7   8   9   10   >