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

[fpc-pascal] backtrace from shared library?

2025-02-20 Thread Peter B via fpc-pascal
Hi, Is there any way to obtain a backtrace from exceptions thrown in a shared library? I've tried using DumpExceptionCallStack   https://wiki.freepascal.org/Logging_exceptions but the problem is that ExceptFrameCount is zero. There does not seem to be any stack at all. No hexadecimal addresses,

[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, Peter ___

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

2024-10-21 Thread Peter B via fpc-pascal
On 21/10/2024 05:18, Gordon Findlay via fpc-pascal wrote: - distros sometimes have quite old versions in their repos. For example my opensuse machine right now is offering Lazarus 2.2. openSUSE (Tumbleweed) is on 3.6, as are most/all of the other rolling distributions https://repology.org/pro

Re: [fpc-pascal] question on docs

2024-10-20 Thread Peter B via fpc-pascal
On 20/10/2024 22:17, ppadilcdx--- via fpc-pascal wrote: I’m a little confused by some references in the docs. Hopefully I can explain it clearly. Looking at TFPGList in fgl. The Sort method refers to a TCompareFunc (it does not link to its definition). TFPGList says it’s methods are the same a

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

2024-10-17 Thread Peter B via fpc-pascal
On 17/10/2024 08:29, Nikolay Nikolov via fpc-pascal wrote: I also agree. Unfortunately, as I said, compiler developers don't make good web designers. Examples for bad sites (I'm repeating myself, I know): https://gcc.gnu.org/ https://llvm.org/ Hi Nikolay, and are these compiler suites w

Re: [fpc-pascal] Floating point question

2024-02-22 Thread Peter B via fpc-pascal
On 22/02/2024 14:22, Jean SUZINEAU via fpc-pascal wrote: As far as I know Extended is not supported on Linux. This is wrong, sorry.  I'm using Extended on Linux and it works just fine. Cheers, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] What's in Hello World

2024-01-08 Thread Peter B via fpc-pascal
On 07/01/2024 16:07, James Richters via fpc-pascal wrote: Try building with smartlinking, -XX I never knew there was an option for smartlinking. I'm using the FPC text IDE, I see various options like Generate Smaller Code, and level 1, 2, and 3 optimizations, but I don't see anything specifica

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Peter B via fpc-pascal
Try building with smartlinking, -XX I get 35k Thats with 3.2.2 on linux ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread Peter B via fpc-pascal
On 06/01/2024 19:05, Matthew Phillips via fpc-pascal wrote: I compiled the Hello World program from the docs and noticed that it's 435k. Compared to a lot of newer languages, like Golang, that's not bad at all. I then compiled the equivalent C program with gcc which came out at 33k. So I'm just

Re: [fpc-pascal] Strings greater than 255 characters

2023-12-19 Thread Peter B via fpc-pascal
On 19/12/2023 11:36, James Richters via fpc-pascal wrote: I did notice that I cannot have a file of Ansistrings… Myfile : File of Ansistring; Causes a compiler error: Error: Typed files cannot contain reference-counted types. I would just define the file as 'Text'. Can then Readln into an

Re: [fpc-pascal] Program crash - read the error messages

2023-09-01 Thread Peter B via fpc-pascal
Can you compile the crashing program with  -gl    ? That should give you a useful stack dump with line numbers. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wrong assignment detected only run time without warning

2023-06-16 Thread Peter B via fpc-pascal
On 16/06/2023 11:55, Giuliano Colla via fpc-pascal wrote: Is that the intended behavior of compiler? Yes. Assigning a 64bit integer to a 32bit one is fine as long as the range is within bounds. Range of a variable can only be checked at run time. ___

Re: [fpc-pascal] Passing around Pascal strings vs AnsiString

2023-06-15 Thread Peter B via fpc-pascal
On 14/06/2023 14:20, Hairy Pixels via fpc-pascal wrote: I was curious, if you had a Pascal (short) string and it was going to be passed around often would that be slower than using an AnsiString since its size is that of a pointer? I always prefer short strings when I know the length will be l

Re: [fpc-pascal] Size of set.

2023-05-23 Thread Peter B via fpc-pascal
On 23/05/2023 01:14, Mikael Backman via fpc-pascal wrote: Hi, basic questions here. Is there any way to decide the number of elements in a set?  there any way to  traverse the elements in a set? Regards Mikael ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] pointer to char vs pchar

2023-03-24 Thread Peter B via fpc-pascal
On 24/03/2023 14:29, Martin Frb via fpc-pascal wrote: On 24/03/2023 15:04, Benito van der Zander via fpc-pascal wrote: why is a pointer to a char not a pchar (for type helpers)? My guess: For the same reason that "p2" fails in the below. Distinct type. May be assignment compatible, but a type

Re: [fpc-pascal] Lack of PIC code support for m68k CPU (was: FPC crashes with Internal error 200502052 compiling shared library on m68k)

2023-03-10 Thread Peter B via fpc-pascal
Thanks for your interest in this Charlie. Just requesting that maybe any more thoughts on this subject could go to the bug report? https://gitlab.com/freepascal.org/fpc/source/-/issues/40177 As this thread will probably be lost in the mists of time, but the bug report should stay open till fix

Re: [fpc-pascal] Lack of PIC code support for m68k CPU (was: FPC crashes with Internal error 200502052 compiling shared library on m68k)

2023-03-09 Thread Peter B via fpc-pascal
On 08/03/2023 21:34, Pierre Muller via fpc-pascal wrote: For m68k, (3104) Compiling StdAI.lpr (3104) Compiling Protocol.pas Protocol.pas(1963,36) Fatal: Internal error 200502052 Fatal: (1018) Compilation aborted Error: /usr/bin/ppc68k returned an error exitcode make[1]: *** [debian/rules:27: ove

[fpc-pascal] FPC crashes with Internal error 200502052 compiling shared library on m68k

2023-03-03 Thread Peter B via fpc-pascal
On Debian 12 (Bookworm) FPC release version 3.2.2 crashes on m68k when trying to build a shared library. See https://buildd.debian.org/status/package.php?p=doublecmd https://buildd.debian.org/status/package.php?p=c-evo-dh Scroll down to "Tail of log for ... m68k:" I have searched the bug tra

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

2022-09-12 Thread Peter B via fpc-pascal
On 12/09/2022 07:52, Jean SUZINEAU via fpc-pascal wrote: As Bart suggested, you can use too the for/in loop:  for s in sl do WriteLn( s); And that is IMHO by far the most elegant, and least error prone, representation. Cheers, Peter ___ fpc-pascal m

Re: [fpc-pascal] Access Violation When SetLength(DynArray, Value)

2022-09-08 Thread Peter B via fpc-pascal
I suggest trying without optimisations and/or using cmem, to see if that changes the outcome. Also, if the array is corrupted prior to the setlength, then iterating the array with a trivial   with... Writeln(Color) or whatever, should trigger an exception. That could then be used at various pa

Re: [fpc-pascal] Arguments gets corrupted with anonymous nested function

2022-09-07 Thread Peter B via fpc-pascal
I'm wondering if this is related to https://gitlab.com/freepascal.org/fpc/source/-/issues/38703 That caused a parameter corruption in a standard function. https://lists.freepascal.org/pipermail/fpc-pascal/2022-March/060361.html Should be easy to check. Just try compiling with -O1 Cheers, Peter