Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2022-05

  1. Compiler flag define or $IFOPT for optimizations

    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…

    Benito van der Zander, Tomas Hajny
    3
  2. Be careful of too many features

    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…

    Steve Litt, Brian, Hairy Pixels
    12
  3. Feature Announcement: Function References and Anonymous Functions

    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…

    Sven Barth, Bart, Benito van der Zander
    21
  4. Code tools and function references

    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…

    Hairy Pixels
    0
  5. "Is nested" vs "of object" compatibility with global functions

    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…

    Hairy Pixels, Martin Frb, Michael Van Canneyt
    4
  6. Strange "division by zero" error using variants

    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…

    Thomas Kurz, Florian Klämpfl, Michalis Kamburelis
    2
  7. Different levels of the same compiler message

    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;…

    gabor
    0
  8. Lazarus Release 2.2.2

    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…

    Mattias Gaertner
    0
  9. Element type of set at compile time

    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

    Hairy Pixels, Martin Frb, Mattias Gaertner
    5
  10. alloca

    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

    Hairy Pixels, Jonas Maebe, Marco van de Voort
    15
  11. bug or feature?

    This can't be right, can it? type TBird = class procedure Fly; end; TEagle = TBird; // alias procedure TEagle.Fly; begin end; Mattias

    Mattias Gaertner, Alexey Torgashin, Elmar Haneke
    27
  12. Feature announcement: implicit generic function specializations

    The FPC developers are pleased to announce the implementation of a new feature: implicit generic function specializations. This feature was implemented by Ryan Joseph,…

    Sven Barth, denisgolovan, Flávio Etrusco
    47