fpc-pascal · 2021-04
- Directory Tree60
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…
- Array range overflow in properties2
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…
- Re: Nested function closures21
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…
- non-virtual class methods called from virtual regular method4
consider the following example T1 = class class procedure CP1; procedure P1; virtual; end; T2 = class(T1) class procedure CP1; end; procedure T1.P1; begin …
- Detecting IO errors with INI file8
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…
- Mustache templates implementation3
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…
- Generic constants with generic type3
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:…
- How does TFPGMap key compare work?3
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…
- Separate release cycle for RTL and compiler proposal14
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?
- Abstract classes ignored15
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…
- Background info on Generics in FPC4
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…
- Documentation patch for fcl/netdb1
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…
- Generic class aliases1
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; …
- More problems in Sinclair QL port (M68K)3
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.…
- Inline assembler m32 source operand0
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…
- Version 3.2.2 changes5
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!…
- Interruption handling on i80868
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…
- lazarus ide space/dot display1
does anyone knows how avoid display dot point for space between 2 words? Thanks in advance
- 6
- Trouble integrating examples into fpcdoc2
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…
- Usage of FieldAddress7
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…
- Pascal Ardiono (avr) library11
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…
- Formatting Question6
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…
