when will support for anonymous functions be added to objfpc? I'm tired of waiting because I don't see anything difficult about it. :'( :'( :'( :'( :'( :'( :'(
Did you even read the announcement ? Available since may 2022 in trunk so no idea what you're waiting for tbh.
Free Pascal Compiler version 3.3.1-17783-gf672d4cccf-dirty [2025/04/10] for x86_64
-----------------------------
{$mode objfpc}
begin
procedure(const aArg: String)
begin
Writeln(aArg);
end('Hello World');
number.lpr(897,5) Error: Illegal expression
---------------
{$MODE DELPHI}
begin
procedure(const aArg: String)
begin
Writeln(aArg);
end('Hello World');
Ok!
-------------------------------------
I still can't use them.... I'm probably very stupid and I don't understand something in principle. There are a lot of things in fpc that are unclear, which work, which don't, and so they work...