Re: [fpc-devel] Question about "Default()"

2024-02-22 Thread Kai Burghardt via fpc-devel
Hello everyone! On 2024‑02‑22 14:27:01 +0100, Martin Frb via fpc-devel wrote: > [...] So is that a bug in Default? [...] I wondered about that, too: https://gitlab.com/freepascal.org/fpc/source/-/issues/34972 Resolution: It's not a bug. -- Sincerely yours, Kai Burghardt signature.asc Descripti

Re: [fpc-devel] Question about "Default()"

2024-02-22 Thread Michael Van Canneyt via fpc-devel
On Thu, 22 Feb 2024, Martin Frb via fpc-devel wrote: https://www.freepascal.org/docs-html/rtl/system/default.html Default is a compiler intrinsic: it returns for every type T a default value. In essence, this is a block of memory that is zeroed out. It can be used to correctly initialize an