Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Graeme Geldenhuys
On 2017-03-08 11:43, Michael Van Canneyt wrote: > Not really, because the list depends on a compiled binary. > There is no binary when generating documentation... Ah, okay. > The good news is that the documentation can already do this without any > changes to the compiler; if so desired, it

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Michael Van Canneyt
On Wed, 8 Mar 2017, Graeme Geldenhuys wrote: On 2017-03-08 10:55, Michael Van Canneyt wrote: Currently not, but I think that Sven Barth will implement something for the new RTTI which will make this possible in the future. That should be handy for the class documentation too, being able to

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Graeme Geldenhuys
On 2017-03-08 10:55, Michael Van Canneyt wrote: > Currently not, but I think that Sven Barth will implement something > for the new RTTI which will make this possible in the future. That should be handy for the class documentation too, being able to list all descendants of a class (much like

Re: [fpc-pascal] how to determine if a class has descendant registered within the current program

2017-03-08 Thread Michael Van Canneyt
On Wed, 8 Mar 2017, Dennis wrote: I have a many classes, one inherits from another one, in an ancestor method, I want to test whether the calling class is a childless class. e.g. class function TAncestor.GetCaption : String; //virtual begin if HasChild then result := 'something'