Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2021-04

  1. Directory Tree

    Does FPC include any tools to display a directory tree, similar to the way files and folders are normally displayed, but I want to make my own custom entries. Have the…

    James Richters, Bart, Jean SUZINEAU
    60
  2. Array range overflow in properties

    Is this a bug in properties and I should be getting an error? type TPixel = record components: array[0..3] of byte; property R: byte read components[10] write…

    Ryan Joseph, Sven Barth
    2
  3. Re: Nested function closures

    Maybe we're misunderstanding each other then. I'm responding to Sven when he says: I.e. all closures will be interface based because there are not enough real world use…

    Ryan Joseph, Bo Berglund, Graeme Geldenhuys
    21
  4. non-virtual class methods called from virtual regular method

    consider the following example T1 = class   class procedure CP1;   procedure P1; virtual; end; T2 = class(T1)   class procedure CP1; end; procedure T1.P1; begin  …

    LacaK, Jonas Maebe, Michael Van Canneyt
    4
  5. Detecting IO errors with INI file

    I'm trying to detect if an INI file is open by another program, but the way I normally do this is not working. // open the file for write and keep it open to test…

    James Richters, Michael Van Canneyt, Sven Barth
    8
  6. Mustache templates implementation

    For my job I needed a Mustache templates library in pascal. Since dmustache (part of mORMot) fails the official mustache tests and did not work on the platform I needed…

    Michael Van Canneyt, leledumbo
    3
  7. Generic constants with generic type

    Hi all! With the existing syntax of constants, it is good to pass array boundaries, but bad to initial parameter values. What do you think about such constructs:…

    Andrey Zubarev, Sven Barth
    3
  8. How does TFPGMap key compare work?

    I have a question I was just curious about. From what I can tell TFPGMap uses CompareByte to compare keys of arbitrary type, which is clever but how does this work for…

    Ryan Joseph, Sven Barth
    3
  9. Separate release cycle for RTL and compiler proposal

    I would like to propose to separate RTL release   from compiler release so that RTL bug fixes and features can be released with shorter release cycle. Is that possible?

    Zamrony P. Juhara, Florian Klämpfl, Jonas Maebe
    14
  10. Abstract classes ignored

    From the documentation: "An abstract class is a class that cannot be instantiated directly. Instead, a descendent class must always be instantiated. However, for Delphi…

    Ryan Joseph, Bart, C Western
    15
  11. Background info on Generics in FPC

    Hi I'm looking at the wiki and official FPC language documentation. What was the reason for the decision to make the FPC syntax so verbose regarding Generics? eg: What…

    Graeme Geldenhuys, Florian Klämpfl, Ryan Joseph
    4
  12. Documentation patch for fcl/netdb

    I've added a documentation patch to bug 0037906 in the bug tracker. This covers the new code that I added to fcl/netdb for DNS resolution as well most of the other…

    Noel Duffy, Michael Van Canneyt
    1
  13. Generic class aliases

    With normal classes you can make aliases to other units but with generics you get an error. Am I doing this wrong or is this not supported? type TList = UOther.TList; …

    Ryan Joseph, Sven Barth
    1
  14. More problems in Sinclair QL port (M68K)

    I've been working on the Sinclair QL version of the FPC runtimes and I've got quite a lot of progress made. Unfortunately, I've hit a problem with the Append() function.…

    Norman Dunbar, Pierre Muller
    3
  15. Inline assembler m32 source operand

    how can I address m32 source operand in inline assembler instruction like : asm   ...   VBROADCASTSS m32, %xmm1;   ... end; if I would like broadcast to %xmm10 single…

    LacaK
    0
  16. Version 3.2.2 changes

    Does anyone have a link to useful list of changes or bug fixes for 3.2.2? Both the "New features" & "User Changes" pages are currently rather sparse!…

    Peter, Florian Klämpfl, Jonas Maebe
    5
  17. Interruption handling on i8086

    I'm doing DOS development for fun and, after installing the compiler (was quite hard), I'm having problems handling interrupts. I started with keyboard and it doesn't…

    Guillermo, Christo Crause, Marco Borsari
    8
  18. lazarus ide space/dot display

    does anyone knows how avoid display dot point for space between 2 words? Thanks in advance

    jean-françois Jouvet, Martin Frb
    1
  19. Minimal size of compiled library (DLL under Windows)

    LacaK, Jonas Maebe, Marco van de Voort
    6
  20. Trouble integrating examples into fpcdoc

    In the fpcdocs subversion project, there are a number of example directories each containing one or more small programs and a Makefile. My question is, is that Makefile…

    Noel Duffy, Michael Van Canneyt
    2
  21. Usage of FieldAddress

    I'm trying to see fields by name but TObject.FieldAddress doesn't seem to be working. Do I have that correct I should be using FieldAddress to return the pointer of the…

    Ryan Joseph, Sven Barth
    7
  22. Pascal Ardiono (avr) library

    During some spare free time I've ported parts of the Arduino AVR library to Free Pascal. So now it is possible to use things like 'DigitalWrite' and 'Delay'. More info…

    Joost van der Sluis, Dimitrios Chr. Ioannidis, Florian Klämpfl
    11
  23. Formatting Question

    I'm looking for a way to format numerical data in a string so that everything ends up aligned by the decimal point. I've been trying to use the Format() function but I…

    James Richters, Jean SUZINEAU, Travis Siegel
    6