Re: [fpc-pascal] C-blocks

2018-11-16 Thread Sven Barth via fpc-pascal
Am Fr., 16. Nov. 2018, 12:57 hat Ryan Joseph geschrieben: > > > > On Nov 16, 2018, at 5:33 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > When a function contains at least one anonymous function then a capture > object is created which is shared by all anonymous

Re: [fpc-pascal] C-blocks

2018-11-16 Thread Ryan Joseph
> On Nov 16, 2018, at 5:33 PM, Sven Barth via fpc-pascal > wrote: > > When a function contains at least one anonymous function then a capture > object is created which is shared by all anonymous functions in the function > and also all captured local variables are moved there. If there is no

Re: [fpc-pascal] C-blocks

2018-11-16 Thread Sven Barth via fpc-pascal
Am Fr., 16. Nov. 2018, 03:25 hat Ryan Joseph geschrieben: > > > > On Nov 15, 2018, at 11:30 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > No, too many ways to do the same thing don't make things easier, not to > mention that everything needs to be maintained. S

Re: [fpc-pascal] C-blocks

2018-11-15 Thread Ryan Joseph
> On Nov 15, 2018, at 11:30 PM, Sven Barth via fpc-pascal > wrote: > > No, too many ways to do the same thing don't make things easier, not to > mention that everything needs to be maintained. So this gets a definite "no" > from me. > > Also the overhead for calling an anonymous function i

Re: [fpc-pascal] C-blocks

2018-11-15 Thread Sven Barth via fpc-pascal
Am Do., 15. Nov. 2018, 15:01 hat Ryan Joseph geschrieben: > Given that, having a light-weight “anonymous nested function” (not a > “reference to” closure) is actually a nice compliment and in fact 2 > different things. As FPC’s current c-blocks support demonstrates, it has > closure properties bu

Re: [fpc-pascal] C-blocks

2018-11-15 Thread Ryan Joseph
> On Nov 15, 2018, at 5:09 PM, Sven Barth via fpc-pascal > wrote: > > Unlike you I'm in active contact with the developer and the last message was > only a few months ago. That’s good news then but I’m not going to hold my breath. Best of luck to the man. > > > Would it be permitted to

Re: [fpc-pascal] C-blocks

2018-11-15 Thread Sven Barth via fpc-pascal
Am Do., 15. Nov. 2018, 08:39 hat Ryan Joseph geschrieben: > > > > On Nov 15, 2018, at 1:27 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > They are only useful when interacting with the external runtime. On > other OSes nothing would support them thus there is no

Re: [fpc-pascal] C-blocks

2018-11-14 Thread Ryan Joseph
> On Nov 15, 2018, at 1:27 PM, Sven Barth via fpc-pascal > wrote: > > They are only useful when interacting with the external runtime. On other > OSes nothing would support them thus there is no use for them. Additionally > this requires extensive runtime, not to mention Objective C support.

Re: [fpc-pascal] C-blocks

2018-11-14 Thread Sven Barth via fpc-pascal
Am 15.11.2018 um 03:59 schrieb Ryan Joseph: Can c-blocks support Jonas added for Cocoa support be extended to other platforms or is this stuck with OS X? It uses a runtime library by Apple but is it possible to replace this with a custom Pascal implementation? Somes notes: http://wiki.lazarus