Skip to content

Rtti: implement the TRttiContext.KeepContext/TRttiContext.DropContext

Summary

In Delphi, the TRttiContext record has the KeepContext and DropContext methods that causes the TRttiContext acts as a singleton across the application. No matter, how many TRttiContext.Create / Free will be called, the context will be created just once. It positive affects to performance when operate with rtti.

So, I propose my implementation of these two methods for Free Pascal to make the code more compatible with Delphi. rtti.patch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information