Sign in Join

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

Mailing lists / fpc-devel

fpc-devel · 2025-07

  1. generic forward declaration?

    Are there? Or is there something else? The below compiles. No duplicate TBar. Looks like a forward declaration... program Project1;{$Mode objfpc} type   generic…

    Martin Frb, Mattias Gaertner, Michael Van Canneyt
    7
  2. generic constraints...

    Currently you can't do type   generic TFoo<A> = class      procedure Bar; virtual;   end;   generic FooChild<F: TFoo> = class(F)      procedure Bar; override;…

    Martin Frb, Mattias Gaertner, Michael Van Canneyt
    5
  3. "class of TFoo".Create

    I stumbled (by accident) on (maybe) a curiosity TFooClass = class of TFoo; can store a class (that must be TFoo or subclass of it). I would have expected that the type…

    Martin Frb, Bart, J. Gareth Moreton
    7