[fpc-pascal] Caller agnostic procedure variables
Michael Van Canneyt
michael at freepascal.org
Tue Feb 15 13:10:32 CET 2022
On Tue, 15 Feb 2022, Ryan Joseph via fpc-pascal wrote:
>
>
>> 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"?
In Delphi it is not. In FPC it should be :-)
Michael.
More information about the fpc-pascal
mailing list