Re: [fpc-pascal] inline callback functions?

2017-08-09 Thread Sven Barth via fpc-pascal
Am 09.08.2017 06:21 schrieb "Ryan Joseph" : > > > > On Aug 7, 2017, at 1:47 PM, Mattias Gaertner wrote: > > > > What you mean are "anonymous functions" or "closures". > > > > State in FPC: > >

Re: [fpc-pascal] inline callback functions?

2017-08-08 Thread Ryan Joseph
> On Aug 7, 2017, at 1:47 PM, Mattias Gaertner > wrote: > > What you mean are "anonymous functions" or "closures". > > State in FPC: > http://lists.freepascal.org/pipermail/fpc-devel/2016-August/037328.html Yes, closures. Seems like development may be abandoned but

Re: [fpc-pascal] inline callback functions?

2017-08-07 Thread Mattias Gaertner
On Mon, 7 Aug 2017 10:52:35 -0600 Ryan Joseph wrote: >[...] Note that "inline" functions in FPC have a different meaning: https://www.freepascal.org/docs-html/prog/progsu36.html What you mean are "anonymous functions" or "closures". State in FPC:

[fpc-pascal] inline callback functions?

2017-08-07 Thread Ryan Joseph
I’m seeing feature this in other languages and it’s pretty useful. Has anyone ever considered this for Pascal? Instead of declaring a method in the class (or other function) it’s written inline from the callers scope and inherits from that scope. The only advantage is readability since