Sign in Join

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

Mailing lists / fpc-devel

fpc-devel · 2025-11

  1. generics syntax question

    It is possible in const (anywhere where a const can be given, not just const blocks) to be able to: - access values inside structures - take the address of a field. That…

    Martin Frb, Sven Barth
    1
  2. Strange error / Why / generic in wrapper class

    The first 2 procedures show that      var   v2:  TWrap1.specialize TTest4<TObject>; is valid. The generic can be specialized directly for the variable. But, if…

    Martin Frb, Sven Barth
    2
  3. GetDiskFreeSpaceExW implementation

    MS defines GetDiskFreeSpaceExW as follows: (https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdiskfreespaceexw) BOOL GetDiskFreeSpaceExW( [in,…

    Bart, Michael Van Canneyt, Tomas Hajny
    4
  4. Issue with const constraint in Delphi mode specialize (Fun with Delphi mode)

    It appears the below code can distinguish between the 2 TFoo (generic vs constant). But if the constraint to the generic is an "const integer" then how to you specialize…

    Martin Frb
    0
  5. Impossible CONST generic constraints in forward declarations...?

    According to https://forum.lazarus.freepascal.org/index.php/topic,52157.msg383991.html#msg383991 1) Contstraint given in the interface declaration MUST be dropped in the…

    Martin Frb
    3
  6. generics defy scoping rules -- Intended?

    Normally, if I refer to a type then the first type found by the name will be taken => and if that type is not compatible, then I get an error. => See Example 2 But, if I…

    Martin Frb, Hairy Pixels, Michael Van Canneyt
    8
  7. inconsistent source parsing ? (deprecated)

    In the below code, foo is accepted, and using foo issues the note that it is deprecated. So having a "deprecated" after the "cdecl; " works. But only with "= nil". the…

    Martin Frb
    1
  8. TFile.ReadAllBytes broken in 3.2.4RC1

    TFile.ReadAllBytes (in System.IOUtils) seems to alwasy return TBytes filled with zero's. It's implemented as (See:…

    Bart, michael
    5