[fpc-pascal] Caller agnostic procedure variables

Ryan Joseph genericptr at gmail.com
Tue Feb 15 13:06:29 CET 2022



> On Feb 15, 2022, at 3:32 PM, Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> I requested that this:
> 
> procedure TMyObject.Demo;
> 
>  Procedure DoSub;
>  begin
>    Writeln('Sub');
>  end;
> 
> begin
>  DoTest(DoSub);
> end;

So that means "reference to procedure" is not compatible with "is nested"?

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list