fpc-pascal · 2022-05
- Compiler flag define or $IFOPT for optimizations3
I want to show how my program was compiled. Now I have string like "FPC3.2.2 i386-Linux R+C+" from compiler := 'FPC' + {$INCLUDE %FPCVERSION%} + ' ' + {$INCLUDE…
- Be careful of too many features12
In 1984 I started my programming career with Whitesmith Pascal, and soon after Turbo Pascal 3, then C. C had the advantage of pointers to functions, Pascal had the…
- Feature Announcement: Function References and Anonymous Functions21
The Free Pascal Developer team is pleased to finally announce the addition of a long awaited feature, though to be precise it's two different, but very much related…
- Code tools and function references0
Is this issue addressing the fact that the Lazarus code tools is not working with the new syntax? https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39774. If…
- "Is nested" vs "of object" compatibility with global functions4
I’ve been testing out all the different function pointer types in FPC to test their compatibility with each other and I noticed that “is nested” can accept a…
- Strange "division by zero" error using variants2
please consider the following code: program Project1; {$booleval off} var v1, v2: variant; a: boolean; b: integer; begin a := true; b := 0; // this works as expected: if…
- Different levels of the same compiler message0
Why am I getting a different level (hint/warning) of the same compiler message in similar code, only differing in return type? The following example: program Project1;…
- Lazarus Release 2.2.20
The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and…
- Element type of set at compile time5
Is there a compiler intrinsic to get the element type of a set at compile time? So if you have “set of T” it should return T. Ryan Joseph
- alloca15
Is there an “alloca" like function in the RTL which allocates memory from the stack? For example https://man7.org/linux/man-pages/man3/alloca.3.html Ryan Joseph
- bug or feature?27
This can't be right, can it? type TBird = class procedure Fly; end; TEagle = TBird; // alias procedure TEagle.Fly; begin end; Mattias
- Feature announcement: implicit generic function specializations47
The FPC developers are pleased to announce the implementation of a new feature: implicit generic function specializations. This feature was implemented by Ryan Joseph,…
