Re: [fpc-pascal] Strange behavior in generics.collections TDictionary

2022-01-26 Thread Sven Barth via fpc-pascal
Am 25.01.2022 um 18:48 schrieb Thomas Kurz via fpc-pascal: Consider the following code: *** PROGRAM project1; {$mode objfpc} {$longstrings on} // see output below {$modeswitch advancedrecords} USES Variants, Generics.Collections, SysUtils; TYPE TRecord = PACKED RECORD FID: NativeUInt; F

Re: [fpc-pascal] Macro expanding error

2022-01-26 Thread Pierre Muller via fpc-pascal
Hi all, Le 26/01/2022 à 02:59, Ryan Joseph via fpc-pascal a écrit : I have this macro: {$define TCallback := TCallback2} which gives a long list of these errors. warning: Expanding of macros exceeds a depth of 16. What does this warning mean and how can I resolve it? I just tested this:

[fpc-pascal] Strange behavior in generics.collections TDictionary

2022-01-26 Thread Thomas Kurz via fpc-pascal
Consider the following code: *** PROGRAM project1; {$mode objfpc} {$longstrings on} // see output below {$modeswitch advancedrecords} USES Variants, Generics.Collections, SysUtils; TYPE TRecord = PACKED RECORD FID: NativeUInt; FKey: String; CONSTRUCTOR Create (AID: NativeUInt; AKey: Strin