Re: [fpc-devel] Static class methods can or cannot be virtual?

2018-01-22 Thread Maciej Izak
2018-01-22 18:48 GMT+01:00 Mattias Gaertner : > On Mon, 22 Jan 2018 18:45:57 +0100 > Maciej Izak wrote: > > Correct. There was some topic about "static class methods" and "class > > property" some time ago on fpc-devel or in fpc-pascal. For example

Re: [fpc-devel] Static class methods can or cannot be virtual?

2018-01-22 Thread Mattias Gaertner
On Mon, 22 Jan 2018 18:45:57 +0100 Maciej Izak wrote: > 2018-01-22 18:25 GMT+01:00 Denis Kozlov : > > > I presume then there is no way for having a class property who's returned > > value can be dynamically changed in child classes? In other words, class >

Re: [fpc-devel] Static class methods can or cannot be virtual?

2018-01-22 Thread Maciej Izak
2018-01-22 18:25 GMT+01:00 Denis Kozlov : > I presume then there is no way for having a class property who's returned > value can be dynamically changed in child classes? In other words, class > property getters/setters can only be implemented by the class that declared > the

Re: [fpc-devel] Static class methods can or cannot be virtual?

2018-01-22 Thread Denis Kozlov
On 22/01/2018 17:09, Maciej Izak wrote: This was bug, fixed in trunk (see my rev. 35724) Thank you for pointing that out. I presume then there is no way for having a class property who's returned value can be dynamically changed in child classes? In other words, class property

Re: [fpc-devel] Static class methods can or cannot be virtual?

2018-01-22 Thread Maciej Izak
2018-01-22 18:00 GMT+01:00 Denis Kozlov : > Can static class methods be virtual? > This was bug, fixed in trunk (see my rev. 35724) -- Best regards, Maciej Izak ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] Static class methods can or cannot be virtual?

2018-01-22 Thread Denis Kozlov
Hello, Can static class methods be virtual? According to the FPC documentation, static class methods cannot be virtual, as stated here: https://www.freepascal.org/docs-html/ref/refsu30.html But in practice, FPC compiles and executes virtual and overridden static class methods just fine.