[fpc-pascal] Getting the current Unit Name

Noah Silva shiruba at galapagossoftware.com
Sun Jul 14 02:13:42 CEST 2013


In Delphi, there exists: TObject Class Function UnitName, which allows you
to get the Unit of a given class.  This seems not to be implemented in

If there a similar function available in FreePascal? (I am sure there is
some way to do this using the VMT.)
Alternatively, is there an easy way to just return the name of the current

Thank you,
    Noah Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130714/fdf818ad/attachment.html>

More information about the fpc-pascal mailing list