Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2021-12

$modeswitch Closures

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

The attached modeswitch_closures.patch introduces {$modeswitch Closures}; it is included in {$mode Delphi}.

There is a distinction between anonymous routines (defined in-place, without a name) and closures (capture the context they are invoked with). The switch encompasses both, but goes for the shorter and catchier name.

βþ

Reply by email

Sven Barth
to Unknown author
Blaise--- wrote 7 lines
The attached modeswitch_closures.patch introduces {$modeswitch Closures}; it is included in {$mode Delphi}. There is a distinction between anonymous routines (defined in-place, without a name) and closures (capture the context they are invoked with). The switch encompasses both, but goes for the shorter and catchier name.

Rejected. First of a modeswitch only patch won't be done, but also this was now split into AnonymousFunctions and FunctionReferences.

Regards,
Sven

Reply by email