fpc-pascal · 2022-12
- Open array in object constructor gives error14
Why is using the open array parameter illegal using the Object type? ======================== {$mode objfpc} program test; type TMyObject = object constructor…
- Local Type T and generics2
I have local type TTempItem, i.e. declared inside method of a generic class. When I write: type TTempItem = record Item: T; Empty:…
- Programming Pascal using an AI Chatbot13
The following page hosts a series of Pascal programming questions I asked an AI chatbot system while testing its abilities. https://www.getlazarus.org/aichatbot
- Working on a new way to educate people about pascal42
I had a new idea for an interface design to help people who either are not into programming yet or have only used a language other than Free Pascal. Please see this…
- Generic threadlist0
Hi, I made a generic threadlist for the unit fgl. I'm wondering what is the opinion on stuff like that. Specifically it's T: TObject and not for "pointers." I had made…
- fcl-web websocket9
I am trying to test the websocket client in fcl-web by making a simple echo client. I have been unable to make it work using fpc trunk on linux64. I also crosscompiled…
- Unrelated type helpers with the same members? Implement an interface with a type helper?10
Hi what I want to do is similar to this question here: https://en.delphipraxis.net/topic/423-rtti-determine-record-helper-type-for-a-base-type/ I am going to create…
- SqlDB TSQLQuery sqoAutoApplyUpdates does not work with ExecSQL9
On MSSQL i use a stroed procedure to count a value in a table and use the following statement in Lazarus I must extra write an ApplyUpdates, because the…
- debugserver and dbugintf1
I'm using FPC 3.2.2 as installed with Lazarus 2.2.4. I'm using the debugserver/dbugintf for some time and implemented some small changes to improve this duo. The files…
- How to inline CompareFunc to Sort method in generic abstract class10
I wrote a generic abstract class - a list based on dynamic array (i.e. array of T;) and this class can be specialized elsewhere with any type (records or classes).…
