On Mon, 20 Jun 2022 20:32:44 +0700
Hairy Pixels via fpc-pascal <[email protected]> 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
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to