Re: [fpc-devel] Local classes and interfaces

2020-12-22 Thread Sven Barth via fpc-devel
Am 21.12.2020 um 16:22 schrieb Blaise--- via fpc-devel: On 19.12.2020 16:51, Sven Barth wrote: Considering that it's only intended for internal use, yes I'm aboard with that. Here is the first change: http://hg.blaise.ru/public/fpc/rev/7c78bfdaed9a (attached). Strictly speaking, some local

Re: [fpc-devel] Local classes and interfaces

2020-12-21 Thread Blaise--- via fpc-devel
On 19.12.2020 16:51, Sven Barth wrote: Considering that it's only intended for internal use, yes I'm aboard with that. Here is the first change: http://hg.blaise.ru/public/fpc/rev/7c78bfdaed9a (attached). Strictly speaking, some local classes and interfaces can be compiled without that -- th

Re: [fpc-devel] Local classes and interfaces

2020-12-19 Thread Sven Barth via fpc-devel
Blaise--- via fpc-devel schrieb am Sa., 19. Dez. 2020, 12:47: > Behind the scene, the Closures implementation declares classes and > interfaces. And, because I strongly believe it to be conceptually the right > way, such entities are declared in the innermost routine scope. For example, > ---

[fpc-devel] Local classes and interfaces

2020-12-19 Thread Blaise--- via fpc-devel
Behind the scene, the Closures implementation declares classes and interfaces. And, because I strongly believe it to be conceptually the right way, such entities are declared in the innermost routine scope. For example, ---8<--- procedure Foo; type Local = reference to procedure;