Re: [fpc-pascal] What is -CO ?

2023-06-09 Thread Martin via fpc-pascal
On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: Hi, What is -CO? In the docs I can only find this sentence: "Check for possible overflow of integer operations" Done some testing. -CO produces the below warning. program Project1; var a,b: Integer; var c: intege

Re: [fpc-pascal] LibXML2

2023-06-12 Thread gabor via fpc-pascal
Currently, libxml2 headers are outdated and partially incorrect/incomplete. I updated the headers a couple of years ago. You can find the patch file here: https://gitlab.com/freepascal.org/fpc/source/-/issues/38905 Michał. W dniu 2023-06-12 o 17:12, David Connolly via fpc-pascal pisze: Hi

Re: [fpc-pascal] Legitimate use of for and break

2023-06-18 Thread wkitty42--- via fpc-pascal
On 6/17/23 2:07 PM, Travis Siegel via fpc-pascal wrote: This is interesting, because it's the first time I've ever seen "break" as a valid command in pascal, and I've been using pascal since the mid/late 80s.  All kinds of dialects too, and I've never seen break

Re: [fpc-pascal] Legitimate use of for and break

2023-06-21 Thread wkitty42--- via fpc-pascal
On 6/20/23 10:54 PM, Steve Litt via fpc-pascal wrote: It was a long time ago, but if I remember correctly the Whitesmith Pascal and Turbo Pascal 2 and 3 had either break or continue. If I remember correctly, I first learned about those when learning C. i'm confused about your stat

Re: [fpc-pascal] Legitimate use of for and break

2023-06-22 Thread wkitty42--- via fpc-pascal
On 6/21/23 10:54 AM, Steve Litt via fpc-pascal wrote: wkitty42--- via fpc-pascal said on Wed, 21 Jun 2023 08:07:59 -0400 On 6/20/23 10:54 PM, Steve Litt via fpc-pascal wrote: It was a long time ago, but if I remember correctly the Whitesmith Pascal and Turbo Pascal 2 and 3 had either break or

Re: [fpc-pascal] Legitimate use of for and break

2023-07-01 Thread Santi via fpc-pascal
El 16/06/2023 a las 16:09, Mattias Gaertner via fpc-pascal escribió: On Fri, 16 Jun 2023 20:51:42 +0700 Hairy Pixels via fpc-pascal wrote: On Jun 16, 2023, at 6:23 PM, Thomas Kurz via fpc-pascal wrote: Whether it's elegant is a different question. In my opinion YES because it often

[fpc-pascal] Volatile store usage

2023-08-11 Thread denisgolovan via fpc-pascal
d". Are "volatile" stores supported? I tried following using my rather old 3.3.1 compiler, but none of them compile: volatile(mem):=0; mem:=volatile(0); Any help? -- Regards, Denis Golovan ___________ fpc-pascal maillist - fpc-pascal@li

Re: [fpc-pascal] Volatile store usage

2023-08-12 Thread denisgolovan via fpc-pascal
> On 11/08/2023 18:05, denisgolovan via fpc-pascal wrote: > >> Are "volatile" stores supported? > > They weren't, but I've added support for it now. Aha. Thanks. -- Regards, Denis Golovan ___________________ fpc-pascal mailli

[fpc-pascal] Barriers semantics

2023-08-14 Thread denisgolovan via fpc-pascal
re common / standard terms - Acquire/Release & their combinations? Is it safe to assume that: ReadBarrier - Acquire WriteBarrier - Release ReadWriteBarrier - Acquire+Release ReadDependencyBarrier - which one is that? -- Regards, Denis Golovan _______

Re: [fpc-pascal] Barriers semantics

2023-08-14 Thread denisgolovan via fpc-pascal
> On 14/08/2023 18:19, denisgolovan via fpc-pascal wrote: > >> Now we have "volatile" intrinsic for assignments in place, I'd like to ask >> for another clarification. > > Just to make sure given your questions below: using volatile in the > context

Re: [fpc-pascal] overriden or not ?

2023-08-18 Thread Bart via fpc-pascal
On Fri, Aug 18, 2023 at 10:21 AM Adriaan van Os via fpc-pascal wrote: > > Is there a way to see if a specific class/object method has been overridden > or not ? There's an example of this in Lazarus Controls unit: // Check if SetTextBuf is overridden, otherwise // we can ca

[fpc-pascal] fpc webassembly and node

2023-10-09 Thread k1 via fpc-pascal
; begin n := 4711; end; function add( a1, a2 : Integer ) : Integer; var connection : TConnection; begin //connection := TConnection.Create; Result := 4711; end; exports add name 'add'; end. _______ fpc-pascal maillist -

[fpc-pascal] fcl-web websocket

2023-11-08 Thread k1 via fpc-pascal
server with the same command crash what do i have to do on the server side to have a ssl connection thanks in advance peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Cmdline parser

2023-11-12 Thread denisgolovan via fpc-pascal
creating another half-baked parser :) Perhaps any existing parser willing to accept patches will do as well. -- Regards, Denis Golovan _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?

2023-11-18 Thread Bart via fpc-pascal
implement these features. -- Bart ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?

2023-11-19 Thread Bart via fpc-pascal
On Sun, Nov 19, 2023 at 11:04 AM Sven Barth via fpc-pascal wrote: > Also: does this depend on the operating system and/or file system? Cause > Linux file systems have different invalid characters (usually only slash and > NUL) than NTFS or FAT. Determining FileSystem at runtime, is

Re: [fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?

2023-11-19 Thread Bart via fpc-pascal
On Sun, Nov 19, 2023 at 12:59 PM Michael Van Canneyt via fpc-pascal wrote: > The output is in linux.txt and windows.txt Thanks for testing. It seems that it'll pick the last absolute path it finds, not the first one in the argument list. It seems that DoTest('regular 1',&

Re: [fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?y

2023-11-19 Thread Bart via fpc-pascal
On Sun, Nov 19, 2023 at 2:31 PM Michael Van Canneyt via fpc-pascal wrote: > > This raises the question what the result of > > TPath.Combine(['a','\b',c'','\d','e']) would be (I would then expect > > either \b\c or \d\e)? >

Re: [fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?y

2023-11-19 Thread Bart via fpc-pascal
On Sun, Nov 19, 2023 at 3:50 PM Bart wrote: > Thanks again for testing. What about ['c:','a','b'] Does it return c:a\b, or c:\a\b (on Windows), or IOW: does it take into account driveletters? The first one IMO would be correct. -- Bart _________

Re: [fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?y

2023-11-19 Thread Bart via fpc-pascal
27;,'b']: Got: 'c:\a\b', Expected: '?' <== don't know what the expected value should be here NOT ValidateParams OK: ['']: Got: '', Expected: '' OK: ['','']: Got: '', Expected: '' OK: ['','','']: Got: '', Expected: '' OK: ['a','b','c']: Got: 'a\b\c', Expected: 'a\b\c' OK: ['a','b','\c']: Got: '\c', Expected: '\c' OK: ['a','\b','c']: Got: '\b\c', Expected: '\b\c' OK: ['\a','\b','c']: Got: '\b\c', Expected: '\b\c' OK: ['\a','\b','\c']: Got: '\c', Expected: '\c' OK: ['\a','b','\c:']: Got: '\c:', Expected: '\c:' OK: ['a','<>','\b','c','\d']: Got: '\d', Expected: '\d' -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] case statement

2023-12-14 Thread Bart via fpc-pascal
On Thu, Dec 14, 2023 at 5:01 PM Adriaan van Os via fpc-pascal wrote: > I always use "OTHERWISE instead of ELSE, but that's my personal > preference. +1 Seeing OTHERWISE in source code just makes me smile. -- Bart _______ fpc-pascal

[fpc-pascal] Read Field names from VMT

2023-12-25 Thread Amir--- via fpc-pascal
you, Amir _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2023-12-26 Thread Amir--- via fpc-pascal
On 12/26/23 01:14, Sven Barth via fpc-pascal wrote: Amir--- via fpc-pascal schrieb am Di., 26. Dez. 2023, 07:03: Hi,    I want to retrieve the name of the fields in a record/class, at run time. It looks like "TVmt.vFieldTable" is what I need. But I cannot fi

Re: [fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread DougC via fpc-pascal
that! Doug C.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2023-12-27 Thread Amir via fpc-pascal
Thank you!On Dec 27, 2023 7:46 AM, Sven Barth via fpc-pascal wrote: Am 26.12.2023 um 21:29 schrieb Amir--- via fpc-pascal: On 12/26/23 01:14, Sven Barth via fpc-pascal wrote

[fpc-pascal] How to avoid Copy

2023-12-29 Thread Amir--- via fpc-pascal
PointerToMyRecord. This requires a "lot" of memory allocation/fragmentation. Is there a better solution? Best, Amir _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to avoid Copy

2023-12-29 Thread Amir via fpc-pascal
On Dec 29, 2023 9:50 PM, Adriaan van Os wrote:Amir--- via fpc-pascal wrote: > Hi all, > >  I have a List of record, where the record has a WideString field. >   I have some code like the following: > > function check(constref v: TMyRecord; data: TListOfMyRecord): Bool

Re: [fpc-pascal] How to avoid Copy

2023-12-31 Thread Amir--- via fpc-pascal
On 12/31/23 02:46, Marco van de Voort via fpc-pascal wrote: Op 31/12/2023 om 04:11 schreef Amir--- via fpc-pascal: I compiled the code with `fpc -O3 -Sd -gv -g -gl ` and ran `valgrind` on it (the output is attached). It does not look like there is a big difference between the Check1 and

[fpc-pascal] FPReport: Split text across two or more pages

2024-01-01 Thread Pique7 via fpc-pascal
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-01-02 Thread Pique7 via fpc-pascal
On Tue, 2 Jan 2024 00:02:35 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: > > > On Mon, 1 Jan 2024, Pique7 via fpc-pascal wrote: > > > Hello everyone, > > > > I have already asked this and related questions in the Lazarus Forum. > > > > I want

Re: [fpc-pascal] How to avoid Copy

2024-01-02 Thread Amir--- via fpc-pascal
yList;   r: TRec;   p: TMyList.PT; begin   l := TMyList.Create;   l.Add(TRec.Create(1, 2, 3));   l.Add(TRec.Create(9, 8, 7));   for p in l.GetPtrEnumerator do begin     Writeln(p^.a, ' ', p^.b, ' ', p^.c);   end; end. === code end === Regards, Sven _______

Re: [fpc-pascal] How to avoid Copy

2024-01-02 Thread Amir--- via fpc-pascal
Thanks! On 1/2/24 22:59, Sven Barth via fpc-pascal wrote: Amir--- via fpc-pascal schrieb am Mi., 3. Jan. 2024, 07:53: Yeap! That is actually what I posted here (Feature Request) <https://gitlab.com/freepascal.org/fpc/source/-/issues/40578>. My example allows you to access it

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-01-08 Thread Pique7 via fpc-pascal
On Wed, 3 Jan 2024 13:00:10 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: > > > On Tue, 2 Jan 2024, Pique7 via fpc-pascal wrote: > > > On Tue, 2 Jan 2024 00:02:35 +0100 (CET) > > Michael Van Canneyt via fpc-pascal wrote: > > > >> > >> >

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

2024-01-11 Thread DougC via fpc-pascal
Ah, yes! The Hello World Machine. Doug C. On Thu, 11 Jan 2024 14:34:29 -0500 Adriaan van Os via fpc-pascal wrote --- Nikolay Nikolov via fpc-pascal wrote: > But that increases the binary size to 28 bytes. We can put a 'ret' That's still 27 bytes too mu

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-01-15 Thread Pique7 via fpc-pascal
On Mon, 8 Jan 2024 22:08:16 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: > > > On Mon, 8 Jan 2024, Pique7 via fpc-pascal wrote: > > >> Disregarding the RTF for a moment, you'd need to save the contents of the > >> text fields in a TStringlist instanc

[fpc-pascal] Trash variables (-gt) - Translation

2024-01-17 Thread LacaK via fpc-pascal
.freepascal.org/docs-html/user/userap1.html: -gt    Trash local variables (to detect uninitialized uses; multiple 't' changes the trashing value) _______________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2024-01-21 Thread Amir--- via fpc-pascal
C:\fpc\git> .\testoutput\tfield.exe 1 field(s) with 1 type(s) 0 -> fTest @ 8 of type TSub === output end === Side note: contrary to what I had originally written only classes, but not interfaces are allowed for published fields and they need to have $M enabled. Regards, Sven

Re: [fpc-pascal] Read Field names from VMT

2024-01-22 Thread Amir--- via fpc-pascal
  Params := TParams.Create;   WriteLn(Params.Int2.IntVal);   WriteLn(TInteger(Params.FieldAddress('Int2')).IntVal); The third line does not work (the zipped code is attached). On 1/21/24 23:43, Michael Van Canneyt via fpc-pascal wrote: On Sun, 21 Jan 2024, Amir--- via fpc-pascal wr

Re: [fpc-pascal] Read Field names from VMT

2024-01-22 Thread Amir--- via fpc-pascal
On 1/22/24 23:05, Michael Van Canneyt via fpc-pascal wrote: On Mon, 22 Jan 2024, Amir--- via fpc-pascal wrote:   Params := TParams.Create;   WriteLn(Params.Int2.IntVal);   WriteLn(TInteger(Params.FieldAddress('Int2')).IntVal); The third line does not work (the zipped code i

[fpc-pascal] Need some advice

2024-01-24 Thread ppadilcdx via fpc-pascal
nteger; begin    Dict := TMyDict.Create;    Dict.OnKeyCompare := @cmp;    key.x := 2;    key.y := 4;    Dict.Add(key, 99);    Value := Dict[key];    writeln(Value);    Dict.Free; end. Any advice appreciated. Thanks. Pete ___________ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Need some advice

2024-01-24 Thread ppadilcdx via fpc-pascal
pair;   Value: Integer;   flg: boolean; begin    Dict := TMyDict.Create;    Dict.OnKeyCompare := @cmp;    key.x := 2;    key.y := 4;    Dict.Add(key, 99);    flg := Dict.trygetdata(key, Value);    writeln(flg);    writeln(Value);    Dict.Free; end. On 1/24/24 12:34PM, Luca Olivetti via fp

Re: [fpc-pascal] Need some advice

2024-01-24 Thread ppadilcdx via fpc-pascal
Oh I didn't notice the typo, duh.  Thanks!! On 1/24/24 02:57PM, Sven Barth via fpc-pascal wrote: ppadilcdx via fpc-pascal schrieb am Mi., 24. Jan. 2024, 22:07: Thanks for that, now it compiles but it doesn't work, i.e. I added a pair and value and then used trygetdata an

Re: [fpc-pascal] Floating point question

2024-01-27 Thread Bart via fpc-pascal
On Sat, Jan 27, 2024 at 1:40 PM Thomas Kurz via fpc-pascal wrote: > My problems are: > > 1. The "writeln" in line 32 correctly prints "0." when (cross-) compiling > to win64, but "39.375" when compiling to win32 (with ppc386). On Win64 all math i

Re: [fpc-pascal] Floating point question

2024-01-27 Thread Bart via fpc-pascal
On Sat, Jan 27, 2024 at 1:40 PM Thomas Kurz via fpc-pascal wrote: > 2. According to both C, Sqlite and Excel, the value of "t" in line 41 should > be "8427.0229167". FPC gives me a difference of approximately 39/86400. Again: if I cast all flots involved to

Re: [fpc-pascal] Floating point question

2024-01-27 Thread Bart via fpc-pascal
On Sat, Jan 27, 2024 at 6:23 PM Thomas Kurz via fpc-pascal wrote: > Hmmm... I don't think I can understand that. If the precision of "double" > were that bad, it wouldn't be possible to store dates up to a precision of > milliseconds in a TDateTime. I have a d

Re: [fpc-pascal] Floating point question

2024-01-28 Thread Bart via fpc-pascal
On Sun, Jan 28, 2024 at 10:21 AM Bernd Oppolzer via fpc-pascal wrote: > The problem now is: > > the printout of my value suggest an accuracy which in fact is not there, Which is because I was too lazy to cater for that. Notice the :20:20 in the writeln statement: I tell the compiler

Re: [fpc-pascal] Read Field names from VMT

2024-01-29 Thread Amir--- via fpc-pascal
; Looks like "ChildTClass.ClassName" is correct but the constructor of the appropriate class is not being called. On 1/22/24 23:05, Michael Van Canneyt via fpc-pascal wrote: On Mon, 22 Jan 2024, Amir--- via fpc-pascal wrote:   Params := TParams.Create;   WriteLn(Params.Int2.IntVal);

Re: [fpc-pascal] Read Field names from VMT

2024-01-31 Thread Amir--- via fpc-pascal
: application/gzip ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Read Field names from VMT

2024-02-01 Thread Amir--- via fpc-pascal
I see... The trick was to define TMyClass! Thanks! On 2/1/24 02:19, Michael Van Canneyt via fpc-pascal wrote: On Wed, 31 Jan 2024, Amir--- via fpc-pascal wrote: Without more info (declaration of ChildTClass, declaration of the constructor of that class etc), it is not possible to

[fpc-pascal] How to contribute a Unit

2024-02-03 Thread Amir--- via fpc-pascal
nt to contribute._______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-06 Thread Bart via fpc-pascal
On Tue, Feb 6, 2024 at 6:13 PM Rafael Picanço via fpc-pascal wrote: > type > {$IFDEF CPU86}{$IFDEF CPU32} > TLargerFloat = Extended; > {$ENDIF}{$ENDIF} > > {$IFDEF CPUX86_64} > TLargerFloat = Double; > {$ENDIF} Why (re-invent the wheel)? Why not use Ma

Re: [fpc-pascal] Floating point question

2024-02-10 Thread greim--- via fpc-pascal
:= B_Const; C_Var := C_Const; FF := A_Var+B_Var/C_Var; GG := A_Const+B_Const/C_Const; (* HH := Extended(A_Const <https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal --- end of original message ---___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] FPReport: Split text across two or more pages

2024-02-16 Thread Pique7 via fpc-pascal
On Mon, 8 Jan 2024 22:08:16 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: > > > On Mon, 8 Jan 2024, Pique7 via fpc-pascal wrote: > > >> Disregarding the RTF for a moment, you'd need to save the contents of the > >> text fields in a TStringlist instanc

Re: [fpc-pascal] Floating point question

2024-02-17 Thread wkitty42--- via fpc-pascal
On 2/16/24 9:57 AM, James Richters via fpc-pascal wrote: So you are saying when constant propagation is on, an expression should have a different result than with constant propagation off? The result of math when using constants MUST be the same as the result of identical math using

Re: [fpc-pascal] Can FPC link a program with static (.a) libraries on Windows

2024-02-17 Thread tony.whyman via fpc-pascal
Thanks. Easy to forget that there are 3 ways to link to external libraries.  Original message From: Sven Barth via fpc-pascal Date: 17/02/2024 00:29 (GMT+00:00) To: FPC-Pascal users discussions Cc: Sven Barth Subject: Re: [fpc-pascal] Can FPC link a program with static

[fpc-pascal] 64-bit ARM and CPUARM

2024-05-21 Thread Ched via fpc-pascal
subcatagories CPUPOWERPC32 and CPUPOWERPC64 ? Cheers, Ched' _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-16 Thread Pique7 via fpc-pascal
e webpage of Lazarus! _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-16 Thread geneb via fpc-pascal
! The install process is far from that goal right now. Doug C. Portable Lazarus would just kick ass. g. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-16 Thread xuser13--- via fpc-pascal
On Wed, 16 Oct 2024 02:07:58 +0300, Rainer Stratmann via fpc-pascal wrote: > At the Lazarus Congress in Cologne in October 2024, it ended up being > very > interesting. An important question came up. > > Why are no new users coming to Lazarus/Freepascal? > Why do we find it s

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

2024-10-18 Thread Pique7 via fpc-pascal
bs up! _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] linker warning

2024-10-18 Thread ppadilcdx--- via fpc-pascal
obsolete -macosx_version_min has been renamed to -macos_version_min Was compiling a very simple program that doesn’t use this function so I presume is some old definition on a linker script, but I’m guessing. Regards, Pete ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] docs

2024-10-21 Thread geneb via fpc-pascal
On 10/21/2024 1:35 AM, Christo Crause via fpc-pascal wrote: The official FPC documentation can be accessed from here: https://www.freepascal.org/docs.html These are obviously reference documentation, not getting started or how-to tutorials. The documentation is hosted here: https://gitlab.com

[fpc-pascal] docs

2024-10-20 Thread ppadilcdx--- via fpc-pascal
, if someone points me in the right direction. Regards Pete ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] question on docs

2024-10-20 Thread ppadilcdx--- via fpc-pascal
Ah, Ok thanks! > On Oct 20, 2024, at 3:32 PM, Martin Frb via fpc-pascal > wrote: > > The compare function is declared right inside the class > > { TFPGList } > > generic TFPGList = class(TFPSList) > private > type > TCompareFunc = functio

Re: [fpc-pascal] question on docs

2024-10-20 Thread ppadilcdx--- via fpc-pascal
;const ShortString):LongInt, so only two non-pointer input parameters. Must be another definition somewhere. > On Oct 20, 2024, at 2:38 PM, Peter B via fpc-pascal > wrote: > > On 20/10/2024 22:17, ppadilcdx--- via fpc-pascal wrote: >> I’m a little confused by some refe

[fpc-pascal] question on docs

2024-10-20 Thread ppadilcdx--- via fpc-pascal
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] docs

2024-10-21 Thread ppadilcdx--- via fpc-pascal
Thanks! > On Oct 21, 2024, at 1:35 AM, Michael Van Canneyt via fpc-pascal > wrote: > > > > On Sun, 20 Oct 2024, ppadilcdx--- via fpc-pascal wrote: > >> Apropos the new users discussion, i think the state of the docs is really >> important, new us

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

2024-10-20 Thread greim--- via fpc-pascal
ginal message --- On October 19, 2024 at 4:27 PM GMT+2 fpc-pascal@lists.freepascal.org wrote: > On Oct 19, 2024 at 9:15:10 PM, Rainer Stratmann via fpc-pascal > wrote: >> I really can not see where beginners have to struggle with memory management. >> If a project gets bigg

Re: [fpc-pascal] How do I pass a call back Class and its method to an external library *.so file writting in C++

2024-10-20 Thread Dennis via fpc-pascal
ennis Poon _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-10-17 Thread Santi via fpc-pascal
El 16/10/2024 a las 05:12, Joao Paulo Schwarz Schuler via fpc-pascal escribió: Some half baked ideas: * month after month, the percentage of code coded by AI grows and human made shrinks. * could Pascal be the ideal language coded (or preferred) by AI? Given that Pascal is strongly typed

[fpc-pascal] How do I pass a call back Class and its method to an external library *.so file writting in C++

2024-10-03 Thread Dennis via fpc-pascal
#x27; functions when needed. I consulted co-pilot but it failed to teach me how to do so in a Free Pascal program calling such an external library. Please kindly help. Dennis Poon _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://

Re: [fpc-pascal] Managed record types

2024-11-02 Thread Bart via fpc-pascal
iteln('foo'); end; begin foo; end. === It outputs: C:\Users\Bart\LazarusProjecten\ConsoleProjecten>test class operator TRec.Initialize(var aRec: TRec) foo So, the initialization code is called before anything in the function. Bart On Sat, Nov 2, 2024 at 6:54 PM Thomas Kurz via fpc-p

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

2024-10-15 Thread DougC via fpc-pascal
On Tue, 15 Oct 2024 21:34:01 -0400 Rainer Stratmann via fpc-pascal <mailto:fpc-pascal@lists.freepascal.org> wrote --- Please notice that Telegram does not spend any money in marketing! Telegram is one of the most popular messenger: https://www.oberlo.com/statistics/most-p

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

2024-10-15 Thread DougC via fpc-pascal
On Tue, 15 Oct 2024 19:07:58 -0400 Rainer Stratmann via fpc-pascal <mailto:fpc-pascal@lists.freepascal.org> wrote --- At the Lazarus Congress in Cologne in October 2024, it ended up being very interesting. An important question came up. Why are no new users coming to Lazarus/Free

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

2024-11-20 Thread gabor via fpc-pascal
FPC provides headers for Win API, GTK2, Cocoa, etc. so you can create GUI applications with a default FPC installation. W dniu 2024-11-20 o 15:45, Travis Siegel via fpc-pascal pisze: Again, both of which are IDEs (just of a different type. You still haven't shown me how to build a GU

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

2024-11-19 Thread geneb via fpc-pascal
Does FPC have an equivalent site to http://www.getlazarus.org/? It's very well presented. g. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-11-15 Thread DougC via fpc-pascal
On Fri, 15 Nov 2024 18:35:22 -0500 Steve Litt via fpc-pascal wrote --- So what do you all think? Does a good site really boil down to generous sections of light content on dark background plus generous spacing between sections and subsections?_______

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

2024-11-17 Thread Vern via fpc-pascal
file extrafpc.cfg  in Geany BTW : The guys documenting FPC have never bothered to describe this in any documentation that I can find. Vern On 2024-11-17 12:48, Travis Siegel via fpc-pascal wrote: On 11/17/2024 12:57 PM, Sven Barth via fpc-pascal wrote: Am 16.11.2024 um 16:42 schrieb Marcos

Re: [fpc-pascal] FPGUI on Windows

2024-11-30 Thread wkitty42--- via fpc-pascal
On 11/29/24 4:58 PM, James Richters via fpc-pascal wrote: Thought this should be a separate thread... sorry it if ends up confusing things. ummm... so you know: changing the subject does not create a new thread... posting a new message _/*without*/_ using (one of) the "Reply" bu

Re: [fpc-pascal] FPGUI on Windows

2024-12-01 Thread Trev via fpc-pascal
James Richters via fpc-pascal wrote on 1/12/24 8:36 am: I decided to try to fix this myself, and I'm happy to say I got it working! Well done! I then went on to figure out that X11 is a Linux thing, but I'm on Windows. X11 (X Window System) was originally a UNIX thing (macOS

Re: [fpc-pascal] freepascal lz4 library?

2024-12-02 Thread wkitty42--- via fpc-pascal
On 12/2/24 10:39 AM, Wayne Sherman via fpc-pascal wrote: On Mon, Dec 2, 2024 at 4:16 AM wkitty42--- wrote: TLDR; i'm looking for a (small?) Pascal library to handle lz4 data blocks contained inside a data file... These use the lz4 library with pascal bindings (.a and.o files which c

[fpc-pascal] freepascal lz4 library?

2024-12-02 Thread wkitty42--- via fpc-pascal
ing list traffic on the list where it belongs!* ___________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2024-11-15 Thread geneb via fpc-pascal
On 11/15/2024 7:36 AM, Hairy Pixels via fpc-pascal wrote: On Nov 15, 2024 at 9:23:41 PM, Steve Litt via fpc-pascal wrote: First of all, Joanna on #fpc (and other fpc related IRC channels) has blown off over 100 potential fpc users, including myself. I'm learning Ada now, and liking it

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

2024-11-16 Thread Bart via fpc-pascal
On Sat, Nov 16, 2024 at 8:55 AM Steve Litt via fpc-pascal wrote: > See this is what I don't understand. In the 7 years I used Turbo Pascal > professionally, I don't remember ever having to allocate or free > memory: I just declared variables. This was one of the big advantage

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

2024-12-08 Thread Santi via fpc-pascal
El 30/11/2024 a las 09:53, Hairy Pixels via fpc-pascal escribió: On Nov 30, 2024 at 3:11:10 PM, Michael Van Canneyt via fpc-pascal wrote: This is very much on topic. FPC has no build system Huh ? Of course it does, it has 2. fpcmake (older) and fpmake. Please don't spread inco

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

[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] 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] How to compile program from command line on Linux?

2024-12-16 Thread Bart via fpc-pascal
On Mon, Dec 16, 2024 at 2:21 PM Bo Berglund via fpc-pascal wrote: > Can this be done and in that case how? Yes, of course it can be done. Lazarus IDE just calls the compiler with the correct parameters ;-) If you happen to have a compiled version of lazbuild on the computer in question i

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 Ha

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

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

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

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

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

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-04 Thread Sven Barth via fpc-pascal
essource, I get also a array of float ? > > In wiki : http://wiki.freepascal.org/Lazarus_Resources tey speak only how to > add files into ressource. No, you can't. Resources are not intended for this. What are you trying to achieve? Regards, Sven ___________

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-05 Thread Sven Barth via fpc-pascal
e you writing the array and how are you reading it? > Could it be that TFileStream does accept only integers as data ? > If yes, a conversion would be needed ? One can write and read any blob of data with the stream classes if one knows what one is doing. Regards, Sven ______

<    1   2   3   4   5   6   7   8   9   10   >