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
Hi, my test with Borland Pascal 7.0 running in dosemu2 running 80x87 code. The compiler throws an error message for calculating HH and II with explicit type conversion. The results of FF and GG are the same! Even on 16 bit system! I think this behavior is right! In the 80x87 emulation

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
Hello All, Just a little question. In In https://www.freepascal.org/docs-html/prog/progap7.html , there is specified that CPUARM Free Pascal target is an ARM 32-bit processor. What about ARM 64-bit processors like the ones in Raspberries ? Something similar to CPUPOWERPC with two

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

2024-10-16 Thread Pique7 via fpc-pascal
just a brief description from my point of view. I hope it is somewhat appropriate, otherwise just ignore it! :)    I will only point out a few negative things which I think might keep also other people from using Lazarus because I think nowadays programmers are quite spoiled ...   Firstly, Pascal

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

2024-10-16 Thread geneb via fpc-pascal
I have always found that the self-contained nature of Pascal/Delphi executables is a big advantage over other language systems. Just copy the file and run it, even on a system that has never seen a Pascal/Delphi executable before. If we could do that with the IDE/compiler it would be magic

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
I'm doing my part by creating a Cookbook (along with an intro to FPC and snippets).    https://ikelaiah.github.io/free-pascal-cookbook/ https://ikelaiah.github.io/free-pascal-cookbook/docs/basics/intro-objpas-fpc/   Regards, Ikel   Thum

[fpc-pascal] linker warning

2024-10-18 Thread ppadilcdx--- via fpc-pascal
An FYI for the compiler team I suppose. I got the following warning: Free Pascal Compiler version 3.2.2 [2023/09/18] for aarch64 Copyright (c) 1993-2021 by Florian Klaempfl and others Target OS: Darwin for AArch64 Compiling test.pp Assembling test Linking test ld: warning: -multiply_defined is

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
questions. 1) Should TCompareFunc in TFPGList.Sort be one of the above types, or is there another definition somewhere? 2) What is an “Integer of object” in TFPSListCompareFunc? (I expect it to be a typo but then I’m fairly new to free pascal so I might have missed the memo.) Thanks, Pete

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
Regarding Memory Management Its possible to write a Pascal program w/o any pointer, but it may be not elegant and interfaces to some C-like GUI structures, as used in all common OSs, are impossible. But, I am using Borland Pascal (sic!) and also FreePascal (no Lazarus) for small embedded

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
same order (very important!) with suitable signatures and calling convention (for i386 you should pick cppdecl otherwise the system default should be alright), implementing that interface in some Object Pascal class and then passing an instance of that interface to the library. It could still go

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
Dear All, I am given an API linux library *.so file written in C++. It was expected to be consume by a program written in C++. However, I would like to write such a program in Free Pascal. The given header file is: #ifndef ApiProxyWrapperReplyH #define ApiProxyWrapperReplyH

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
TLDR; i'm looking for a (small?) Pascal library to handle lz4 data blocks contained inside a data file... i've looked for information on how to create and open blocks of lz4 compressed data in data files... i haven't found much and i'm not sure i'm searching proper

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

[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] Feature "Multiline strings" added

2025-07-28 Thread DougC via fpc-pascal
Actually, in Pascal (* and *) came before { }. But this is quite off topic for this thread, so let's leave it. Doug C. On Mon, 28 Jul 2025 10:41:31 -0400 Hairy Pixels via fpc-pascal wrote --- On Jul 28, 2025 at 8:24:38 AM, Brian via fpc-pascal < mailto:fp

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

2025-07-28 Thread Brian via fpc-pascal
On 7/28/25 09:26, Travis Siegel via fpc-pascal wrote: Your argument makes no sense.  There's always been multiple ways to do many things in pascal, and it's never caused any more confusion than any other typical language construct. Take for instance, comments. { this is a comme

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

2025-07-28 Thread DougC via fpc-pascal
Michael Van Canneyt via fpc-pascal < mailto:fpc-pascal@lists.freepascal.org > schrieb am Mo., 28. Juli 2025, 11:21: If this argument is to carry any weight, then we also need to remove all instances where FPC did things differently from Delphi: False. This argument still c

Re: [fpc-pascal] Broken Links on Free Pascal Wiki

2025-07-31 Thread n7800 via fpc-pascal
Hello, on which pages exactly are the links broken? Of course, you can help with that. Find them via search, make sure they are the right pages, and edit the links. Or report it (here or on the forum) if you are not sure.   >Четверг, 31 июля 2025, 12:51 +05:00 от Tim Coates via fpc-pas

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 __

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

2017-03-06 Thread Sven Barth via fpc-pascal
So it seems to me Sizeof(bufferfloat[x]) is the same in the 3 cases (alway > sizeof(float)). Of course it's always the same size as it's an array of cfloat after all and no assignment will change that. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-03-06 Thread Sven Barth via fpc-pascal
r(1), fmOpenRead); try fs.ReadBuffer(fbuf[0], Length(fbuf) * SizeOf(fbuf[0])); finally fs.Free; end; for i := Low(fbuf) to High(fbuf) do Writeln(fbuf[i]); end. === code end === Regards, Sven ___ fpc-pascal maillist - fpc-pascal

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

2017-03-06 Thread Sven Barth via fpc-pascal
nd times the code, maybe I will find what is wrong. Then try to minimize your code as much as possible and then show it here (an as small as possible compileable example that shows your problem). Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.fr

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

2017-03-07 Thread Sven Barth via fpc-pascal
as a resource you need to use TResourceStream. Regards, Sven _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2017-03-07 Thread Sven Barth via fpc-pascal
lp. > Do you agree if I add your name into the list of the "great contributors" of > uos (https://github.com/fredvs/uos) ? > I don't think that's necessary. I'm merely doing my "job"... Regards, Sven ___ f

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