Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2023-01

  1. aligned?

    What does the fpc built-in function aligned? For example in FloatToStrFIntl: Str(Double(Extended(Aligned(Value))):precision+7, Result); Mattias

    Mattias Gaertner, Florian Klämpfl
    2
  2. star operator on enum types

    I found in a fpc program a statement sort of: Type   TSomeType = (a,b,c)   TaType = set of TSometype var   setA,setB: TaType; ..... *if setA * setB = [] then…

    Giuliano Colla, Sven Barth
    2
  3. FpcGui, MSEGui

    Have you worked with both? Both are pure FreePascal GUIs, not depending of ant external library. What are the differences? Which one do you think is more mature, …

    Santiago A.
    0
  4. A rather good blog post on Object Pascal that I thought you folks might enjoy

    Why Object Pascal is More Than Meets the Eye: Exploring the Power and Versatility of Delphi and FreePascal…

    Liam Proven, Abuy, geneb
    7
  5. Why in {$mode delphi} it works and in {$mode objfpc} it doesn't?

    I stumbled into a problem I don't understand. I'm developing a little program for an ftp client. In order to connect to the site I need the site address from the site…

    Giuliano Colla, Marco van de Voort, Mattias Gaertner
    7
  6. TSQLQuery doesn't work with a lookup field if it is a memo (text)

    I just found out that if I try to create a lookup field that points to a memo field (in postgresql the field is defined as text), it bombs out with "list index (-2) out…

    Luca Olivetti
    1
  7. Dynamic array question

      is there a way how to have dynamic array "inside" another dynamic array?   program project1; {$mode objfpc}{$H+}   uses   {$IFDEF UNIX}   {$ENDIF}   Classes,…

    Vojtěch Čihák, Joost van der Sluis
    2
  8. Open array in object constructor gives error

    Why is using the open array parameter illegal using the Object type? ======================== {$mode objfpc} program test; type TMyObject = object constructor…

    Hairy Pixels, Marc Weustink, Mattias Gaertner
    14
  9. TFPHttpClient & TFPHttpServer

    I would like to write some code where a TFPHttpClient component sends a minimal json payload to a TFPHttpServer that (reads the payload). The working of the…

    duilio foschi, Mattias Gaertner, Michael Van Canneyt
    4
  10. Local Type T and generics

      I have local type TTempItem, i.e. declared inside method of a generic class. When I write: type       TTempItem = record        Item: T;        Empty:…

    Vojtěch Čihák, Sven Barth
    2
  11. Programming Pascal using an AI Chatbot

    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

    Anthony Walter, Dwight Schauer, Hairy Pixels
    13
  12. For Loop with QWord

    I'm wondering why I can't have the following: Var I: QWord; Begin For I := 1 To N Do . It generates an error: Error: Ordinal expression expected If I change it to…

    James Richters, Bart
    1