[fpc-devel] Assigning to inherited property calls setter of the child class

2009-05-01 Thread Alexander Klenin
This mail is to discuss issue http://bugs.freepascal.org/view.php?id=13630. From the issue description: Given the definitions: type T1 = class procedure SetP(AP: Integer); virtual; property P: Integer read FP write SetP; end; T2 = class(T1) procedure SetP(AP: Integer);

Re: [fpc-devel] Assigning to inherited property calls setter of the child class

2009-05-01 Thread Mattias Gaertner
On Sat, 2 May 2009 01:45:14 +1100 Alexander Klenin kle...@gmail.com wrote: This mail is to discuss issue http://bugs.freepascal.org/view.php?id=13630. From the issue description: Given the definitions: type T1 = class procedure SetP(AP: Integer); virtual; property P:

Re: [fpc-devel] Assigning to inherited property calls setter of the child class

2009-05-01 Thread Alexander Klenin
On Sat, May 2, 2009 at 01:56, Mattias Gaertner nc-gaert...@netcologne.de wrote: 4) If it has setter named SetP, do the equivalent of inherited SetP. Why? Because this surprises developers and leads to bugs. See the issue http://bugs.freepascal.org/view.php?id=13418 (linked from the discussed

Re: [fpc-devel] Assigning to inherited property calls setter of the child class

2009-05-01 Thread Mattias Gaertner
On Sat, 2 May 2009 02:17:48 +1100 Alexander Klenin kle...@gmail.com wrote: On Sat, May 2, 2009 at 01:56, Mattias Gaertner nc-gaert...@netcologne.de wrote: 4) If it has setter named SetP, do the equivalent of inherited SetP. Why? Because this surprises developers and leads to bugs.

Re: [fpc-devel] Assigning to inherited property calls setter of the child class

2009-05-01 Thread Mattias Gaertner
On Sat, 2 May 2009 02:57:49 +1100 Alexander Klenin kle...@gmail.com wrote: On Sat, May 2, 2009 at 02:39, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 2 May 2009 02:17:48 +1100 Alexander Klenin kle...@gmail.com wrote: Because this surprises developers and leads to bugs.

Re: [fpc-devel] Assigning to inherited property calls setter of the child class

2009-05-01 Thread Alexander Klenin
On Sat, May 2, 2009 at 03:16, Mattias Gaertner nc-gaert...@netcologne.de wrote: Is there a Mercurial mirror of FPC docs? Don't know. Will you create the bug report? http://bugs.freepascal.org/view.php?id=13632 Is the mirror would be available, I'd create a patch too. Alternative solution