On Mon, 20 Jun 2022 20:32:44 +0700 Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote: > Can anyone explain why this works? TProc is a normal function pointer > so how did it capture gVar? gVar is global. No need to capture it. Only stack vars needs capture. Mattias