Joost van der Sluis wrote 9 lines
Unfortunatelly in the moment I have no a FPC from trunk, I will install it as soon as possible.
And there are quite some techniques in that article. which one do you
mean? Maybe if you take some more time to formulate your real question?
The doubt shown in the title: "Is "reference to procedure" implemented in trunk?". Eg:
TProc = *reference to* procedure(x: Integer);
procedure call(const proc: TProc);
begin
proc(42);
end;
var
proc: TProc;
begin
proc := procedure(a: Integer)
begin
Button1.Caption := IntToStr(a)
end;
call(proc)
end;
The article mentions anonymous functions, which are not supported ...
Thanks, it answers my question! ;)
For a moment I thought something like this was implemented, then I would test it.
... but are also useless.
OK, thanks again!
Silvio Clécio
My public projects - github.com/silvioprog