Ryan Joseph via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am Di., 15. Feb. 2022, 13:06:
> > > > On Feb 15, 2022, at 3:32 PM, Michael Van Canneyt via fpc-pascal < > fpc-pascal@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"? > It's relatively "easy" to implement assigning a nested function to function references. However assigning a nested function variable to a function reference is much harder. Assigning a function reference to a nested function variable is hard as well. Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal