[fpc-pascal] Are there any drawbacks to "reference to"?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jun 20 20:34:01 CEST 2022

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.


More information about the fpc-pascal mailing list