fpc-devel · 2026-02
- Unicode weirdness2
Consider the following test program program testunicode; uses SysUtils; var f: file; b: boolean; begin Assign( f, 'tést'); Rewrite( f); Close( f); b := FileExists(…
- Transparent file names in ISO mode0
Hi. Current state of the compiler: The fpc option 'transparent file names in ISO mode' (-Sr) implies the file extension ‘.txt’ for text files. While this is fine for…
- A little something I've been working on...20
They say Object Pascal is a classic, but every classic deserves some modern love. I've silently spent the last few months building something that has actually been in…
- Code Syntax5
Sven was kind enough to share the following link: https://wiki.freepascal.org/Coding_style From memory, I recall FPC includes a code formatter (can't remember the name).…
- FPC 3.2.4rc1 for macOS updated1
I've updated the installer for FPC 3.2.4rc1 to be compatible with macOS Tahoe. It should also still be compatible with Mac OS X 10.8 and later. You'll still have to open…
- Xtensa build for ESP32 - Error: unknown opcode or format name 'dpfr'2
We followed the instructions on this ... ... and on the referred-to page ... A considerable way through the resulting FPC build this happened ... FPC source used was…
- Possible inlining problem1
So I recently rebased my pure function code (https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/645 - nearly 2 years since I first made the merge request, on…
- Unit dependencies14
It seems, that if I make any change in a unit file, even if it is just a comment, then the change triggers a recompile of all dependent units. In theory, only a…
- Uses clause with in patrh0
Section 16.1 Programs of the FreePascal Language Reference Guide describes the uses clause and also discusses the optional in keyword with a path string literal. It says…
- generic and type compatibility / interface vs class ...7
ok, so if I have procedure bar(f: IntfFoo); I can do bar(SomeClassInstanceThatImplementsFoo); makes sense, the interface can be gotten at the time of calling.…
- interfaces / inheritance / again -10
Not yet tested, but only matters if it is not going to be discontinued (in case it actually works) I want a generic Foo <_A: SomeIntf; _B: TBar> such as that I…
- inheritance of interfaces.1
If I have the below code, I can pass an object that has I1 (TFoo if uncommented) to the test function I can also pass an inherited interface. "x1: i2" But I can not pass…
- AI-powered quantum-ready cloud-native heaptrc with blockchain-based verification0
I’ve rewritten heaptrc, pls review / test / accept !1278. Possibly WIP, but trunk already looks worse to me for the reasons listed. Among other things, this might let…
- Question on interface inheritance...6
The below example throws a compile error... Technical correct, well... (doesn't matter which of the 2 intf I use as return type...) Also, same when doing (in the 2…
