[fpc-pascal] Better way to handle callback types

Ryan Joseph genericptr at gmail.com
Sat Aug 21 23:20:05 CEST 2021



> On Aug 21, 2021, at 3:09 PM, Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> As in Delphi 'reference to' will also be used for all references where an
> anonymous functon can be used. But you can perfectly use methods and local
> functions for that. So it will function a like a catch-all procedural type.
> 
> When Sven is done with the anonymous methods, you'll see it in action.

But isn't this going to make the interface wrapper and allocate a class? Maybe Sven can explain how that works.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list