[fpc-pascal] is there a way to list out all classes defined in a unit during run time?

Michael Van Canneyt michael at freepascal.org
Thu Nov 7 09:07:18 CET 2013



On Thu, 7 Nov 2013, Dennis Poon wrote:

> I have a unit which I will incrementally add new subclasses of TCommand.
> 
> At run time, I want to get a list of subclasses of TCommand so that I can compare the where the user's required input (from
> network) matches the name of any TCommand.
> 
> Currently, I have to register each subclass in the initialization section of the unit.
> Is there a way to list out all classes defined in a unit during run time?

Currently not.

Michael.



More information about the fpc-pascal mailing list