Re: [fpc-devel] Allow object type property getter to expose a field as one of its base/parent types (patch included)

2020-06-13 Thread Kostas Michalopoulos via fpc-devel
On Sat, Jun 13, 2020 at 12:07 PM Sven Barth via fpc-devel wrote: > I'm against it. It would essentially mean that you can't use the same > field for the setter or that you'd need to go through a method. > Exchanging one restriction (can't use a base class for the property) for > another (can't use

Re: [fpc-devel] Generic method works on Linux, not on Windows?

2020-06-13 Thread Sven Barth via fpc-devel
Am 30.05.2020 um 14:28 schrieb Sven Barth: Am 30.05.2020 um 12:33 schrieb Yuriy Sydorov: On 29.05.2020 22:36, Sven Barth via fpc-devel wrote: Am 27.05.2020 um 00:41 schrieb Yuriy Sydorov: On 27.05.2020 1:01, Joost van der Sluis wrote: Op 26-05-2020 om 23:36 schreef Yuriy Sydorov: Does it hap

Re: [fpc-devel] Allow object type property getter to expose a field as one of its base/parent types (patch included)

2020-06-13 Thread Sven Barth via fpc-devel
Am 04.06.2020 um 03:45 schrieb Kostas Michalopoulos via fpc-devel: Hello, I'd like to add a small feature for property getters to allow themselves be exposed as a base type of the real field. Example: === program ExposeDerivedAsBase; {$mode objfpc} type TBase = class end; TDerived = cl