[fpc-pascal] New edition of FreePascal From Square One

2025-06-24 Thread Jonas Maebe via fpc-pascal
Hi, There's a new edition of Jeff Duntemann's free book "FreePascal From Square One" available: https://www.contrapositivediary.com/?p=5399 Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.fr

Re: [fpc-pascal] Importing units

2025-06-19 Thread Ingemar Ragnemalm via fpc-pascal
From: Kevin Lyda To: FPC-Pascal users discussions Subject: [fpc-pascal] Importing units Message-ID: Content-Type: text/plain; charset="UTF-8" tl;dr How do I package reusable units for others? Back in 1988/89, I took a computer science class in high school. Yes, we lacked fire

Re: [fpc-pascal] Importing units

2025-06-18 Thread Matthew Phillips via fpc-pascal
> On Jun 18, 2025, at 4:20 PM, Kevin Lyda via fpc-pascal > wrote: > > tl;dr How do I package reusable units for others? > > Back in 1988/89, I took a computer science class in high school. Yes, > we lacked fire back then, but we had a compiler so that was fine. > Spe

[fpc-pascal] Importing units

2025-06-18 Thread Kevin Lyda via fpc-pascal
tl;dr How do I package reusable units for others? Back in 1988/89, I took a computer science class in high school. Yes, we lacked fire back then, but we had a compiler so that was fine. Specifically a Turbo Pascal 3.0 compiler. I had a bunch of fun writing code in it and even though pascal never

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

[fpc-pascal] Checksum changed bug 15218

2025-06-17 Thread Mattias Gaertner via fpc-pascal
Is there maybe some other case that can trigger this bug? Usually the bug can be remedied by reducing the implementation uses sections. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailma

[fpc-pascal] Running testsuite

2025-06-11 Thread Adriaan van Os via fpc-pascal
g a "clean compile of the rtl" and without building certain packages (like a "chm" package). The purpose of the testsuite is to test the compiler-as-is. Regards, Adriaan van Os _______ fpc-pascal maillist - fpc-pas

[fpc-pascal] Generics in current FPC trunk

2025-05-24 Thread Thomas Kurz via fpc-pascal
neric type. And there may be good reasons not to make it public. Kind regards, Thomas _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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

2025-05-24 Thread Thomas Kurz via fpc-pascal
pas2js, iirc). Is this behavior intentional? Kind regards, Thomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2025-05-22 Thread Marco van de Voort via fpc-pascal
Op 22-5-2025 om 10:16 schreef Thomas Kurz via fpc-pascal: I'm trying to create an automated dockerized build of FPC targeting Win32 (and later Win64). Everything's fine so far, except the `utils` directory. Pass FPCMAKENEW=/path/to/utils/fpcm/bin/i386-win32/fpcmake.exe correct t

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

2025-05-22 Thread Thomas Kurz via fpc-pascal
iling fpcm/fpcmwr.pp Compiling fpcm/fpcmpkg.pp [ 14%] Compiled package utils-fpcm You see that compilation of `fpcmake.pp` is missing, thus `fpcmake.exe` is missing, too. What am I doing wrong? Kind regards, Thomas ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] Access to wiki blocked

2025-05-20 Thread Jonas Maebe via fpc-pascal
On 21/05/2025 01:36, Don Siders via fpc-pascal wrote: I was told to contact Jonas about blocked access to the wiki. I recently clicked on a help button in the Lazarus IDE, and after a redirect from Anubis, found that I can no longer access the wiki. I get a connection refused response. I was

[fpc-pascal] Access to wiki blocked

2025-05-20 Thread Don Siders via fpc-pascal
75.109.89.xxx. If there is someone else I need to approach, please advise. Thanks in advance. === Don ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

[fpc-pascal] typo in docs

2025-05-18 Thread ppadilcdx--- via fpc-pascal
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. Regards Pete ___ fpc-pascal mai

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

2025-05-15 Thread Jonas Maebe via fpc-pascal
On 15/05/2025 23:04, Tim Coates via fpc-pascal wrote: I was able to get to Wiki home page. I entered my details into the form to create an account, and on submitting the form, get thrown to a Unable to connect page, I can now no longer access the Wiki home page. :( I'm sorry. I th

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

2025-05-15 Thread Tim Coates via fpc-pascal
I was able to get to Wiki home page. I entered my details into the form to create an account, and on submitting the form, get thrown to a Unable to connect page, I can now no longer access the Wiki home page. :( Tim On Fri, May 16, 2025 at 4:28 AM Jonas Maebe via fpc-pascal < fpc-pas

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

2025-05-15 Thread Jonas Maebe via fpc-pascal
On 15/05/2025 11:04, Tim Coates via fpc-pascal wrote: My IP address is: 121.222.90.99 Should be okay now. I've also added an extra instruction to the captcha to avoid triggering any autobans aimed at bots. Jonas ___ fpc-pascal maillist -

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

2025-05-15 Thread Tim Coates via fpc-pascal
My IP address is: 121.222.90.99 Tim On Thu, May 15, 2025 at 6:19 PM Michael Van Canneyt via fpc-pascal < fpc-pascal@lists.freepascal.org> wrote: > > > On Thu, 15 May 2025, Tim Coates via fpc-pascal wrote: > > > Hi Everyone, > > > > Is there a problem with ht

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 documen

[fpc-pascal] Question about the Wiki Documentation

2025-05-15 Thread Tim Coates via fpc-pascal
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. Regards, Tim Coates (Silver Pascal Coder

[fpc-pascal] Wiki scriping (bis)

2025-05-11 Thread Jonas Maebe via fpc-pascal
perapi.com/locations/china-proxies-for-web-scraping/ Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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 witho

[fpc-pascal] Compilation raised exception internally

2025-04-25 Thread Luca Olivetti via fpc-pascal
ws development from virtualbox to qemu/virt-manager, maybe that's the cause but I find it hard to believe. Here are the messages of the last error Hint: (11030) Start of reading config file D:\pp-fpdebug\bin\i386-win32\fpc.cfg Hint: (11031) End of reading config file D:\pp-fpdebug\bin\i

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

2025-04-04 Thread Sven Barth via fpc-pascal
t working for your specific case does not mean that it will work in general and as such this has no place in the RTL. Regards, Sven > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2025-04-04 Thread Adriaan van Os via fpc-pascal
re you going to fix this ? It is easy to say that and leave the bug open for ever. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2025-04-03 Thread Adriaan van Os via fpc-pascal
d_getspecific and pthread_setspecific. In that case also, there is no duplication of them. An exception-globals dylib would not be needed, but it might be slower ? Regards, Adriaan van Os _______ fpc-pascal maillist - fpc-pascal@lists.fre

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 a

[fpc-pascal] FPC 3.2.4 for ppc64le

2025-03-29 Thread Tobias Giesen via fpc-pascal
c64le target and binary as well ;=) Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Lazarus Release Candidate 3 of 4.0

2025-03-25 Thread Mattias Gaertner via fpc-pascal
The Lazarus team is glad to announce the third release candidate of Lazarus 4.0. This release was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_4.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2

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

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

2025-03-22 Thread Martin Guy via fpc-pascal
d run > on 32-bit and on 64-bit Debian x86 are very slightly different. It's now public in case anyone has access to 32-bit and 64-bit plaforms and cares to verify this. I've fixed the C version on 32-bit platforms and it gives exact the same output as the Pascal version on 32-bit

[fpc-pascal] Testing

2025-03-08 Thread Peter B via fpc-pascal
Just testing, please ignore. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2025-03-07 Thread Sven Barth via fpc-pascal
ing). > i.e. is the fix self contained, or mixed in with other 3.2.3/4 changes? There won't be any patches for a release that is already released. Also 3.2.4 is shortly before its first (and hopefully only) Release Candidate. Regards, Sven ____

[fpc-pascal] Mailing list issues

2025-03-07 Thread Jonas Maebe via fpc-pascal
Hi, The issue with the mailing list server that caused all mails to be bounced should be resolved. Sorry for the trouble. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

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 wit

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 th

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

2025-02-25 Thread Jean SUZINEAU via fpc-pascal
line. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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

2025-02-25 Thread Bo Berglund via fpc-pascal
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? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc

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&#x

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 &quo

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 you

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 abo

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-23 Thread Travis Siegel via fpc-pascal
can easily point to projects that could benefit from having a scripting language, and if js was available, I'd wager many more projects would use it. Again, not my choice, but folks do tend to like it for some reason, so why not? On 2/21/2025 1:22 PM, DougC via fpc-pascal wrote: I am al

Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-22 Thread DougC via fpc-pascal
--- Again, not my choice, but folks do tend to like it for some reason, so why not?___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] my painful way while triing to generate android R33.inc and .pas files

2025-02-22 Thread Mgr. Janusz Chmiel via fpc-pascal
. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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 suppre

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 ch

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 b

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

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

[fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread Anthony Walter via fpc-pascal
Greetings all, I am working on a project that needs scripting and I've decided to make use of Fabrice Bellard's awesome QuickJS library. I am considering making it nice to use for the rest of the Free Pascal user community by implementing an interesting way of integrating Javascript

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

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 to

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

[fpc-pascal] backtrace from shared library?

2025-02-20 Thread Peter B via fpc-pascal
esses, let alone line numbers. (backtraces from exceptions outside the library are working just fine) Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Pascal sensitive diff tool?

2025-02-20 Thread Peter B via fpc-pascal
Hi, 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. I found difftastic. It has an option for Pascal, but is case sensitive which rather defeats the object! Regards,

[fpc-pascal] Lazarus on the Register

2025-02-19 Thread Liam Proven via fpc-pascal
n IoM: (+44) 7624 227612: UK: (+44) 7939-087884 Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

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

2025-02-18 Thread Luca Olivetti via fpc-pascal
he ExecSql? Bye -- Luca _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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/homeb

Re: [fpc-pascal] gmp

2025-02-14 Thread ppadilcdx--- via fpc-pascal
ase can we change the gmp.pas source to: {$ifdef darwin} {$linklib gmp.dylib} {$endif} That way folks can use the installed unit w/o changes (except to their lib path). Thanks! > On Feb 14, 2025, at 6:48 AM, Michael Van Canneyt via fpc-pascal > wrote: > > > > On Tue, 1

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

[fpc-pascal] gmp

2025-02-11 Thread ppadilcdx--- via fpc-pascal
mebrew/lib/libgmp.10.dylib /opt/homebrew/lib/libgmp.a /opt/homebrew/lib/libgmp.dylib Is there a workaround or is the gmp unit unusable with newer versions of gmplib? Appreciate any advice. Regards Pete ___ fpc-pascal maillist - fpc-pascal@lists.

[fpc-pascal] kind plea addressed to MR Jonas Maebe related to javapp.jar

2025-02-11 Thread Mgr. Janusz Chmiel via fpc-pascal
Dear MR  Maebe,     You are very probably belonging among elite Pascal developers, who has created The Android .pas and .inc rtl header files by using javapp.jar. I have big programmers plea to you.     Please do you think, that is it possible to create The newest Exoplayer .jar big library

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 p

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 f

[fpc-pascal] rtl-generics

2025-02-07 Thread ppadilcdx--- via fpc-pascal
files, and not sure how propose a change to add the generated html files so that they show in the documentation site. Any advice appreciated. Regards Pete _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2025-02-05 Thread Wayne Sherman via fpc-pascal
27;t specify a component or package, the system throws an exception." ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] i am finding someone who will learn me to generate fpcjvm compatible Android-34 Api header files

2025-02-04 Thread Mgr. Janusz Chmiel via fpc-pascal
ld be even compatible with Android 14, but I Am having issues with The intent specification in The android manifest.xml Thank all elite developers for their help and advices. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.free

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

2025-02-04 Thread Mgr. Janusz Chmiel via fpc-pascal
your help. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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: > > > >

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

[fpc-pascal] fcl-stl docs and examples

2025-02-03 Thread ppadilcdx--- via fpc-pascal
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). Regards Pete ___ fpc-pascal maillist - fpc-pascal

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

2025-01-30 Thread n7800 via fpc-pascal
s#(Process.)RunCommand   In general, study this article. There are a lot of details there, and options that you can choose, depending on what you need.   >Пятница, 24 января 2025, 19:18 +05:00 от Terry A. Haimann via fpc-pascal >: >  > >I recently tried to execute a sed command from Lazaru

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

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 a

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

2025-01-24 Thread Hairy Pixels via fpc-pascal
happening. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

[fpc-pascal] Question about tprocess from fpc

2025-01-24 Thread Terry A. Haimann via fpc-pascal
ecute them from a Free Pascal program. The work around I have found is to hide them in a script. Not pretty, but it works. This was run on a i7-8700 and I am running Linux Mint 20.2 and am using Mate 1.24 Source Code Function CaptureArtWork(b, e: LongInt): TStringList; Var Ar

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-w

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

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 o

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

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 d

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 &

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, bu

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 >

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&qu

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 >

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

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 >

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  

  1   2   3   4   5   6   7   8   9   10   >