Loading
The source project of this merge request has been removed.
RTTI redesigned, improved compatibility with Delphi
The module has undergone the following major changes:
- added automatic conversion of Pointer to TValue
- added new properties to TRttiProperty to improve compatibility with Delphi, also new IsClassProperty property
- TRttiMethod.Invoke method became abstract, all inheritors implement it differently
- messages about absence of Rtti.Invoke implementation on non-Windows placeholders now inform about existence of third-party managers, in particular ffi.manager
- both Rtti.Invoke implementations have been moved up to provide work of TRttiMethod successors without forward declaration
- all TRttiMethod inheritors existing in the module got full-fledged implementations, added test
- added a temporary check to the closed implementation of Rtti.Invoke to allow passing records to Self parameter by reference (before TValue.MakeWithoutCopy was added).
- redesigned TValue.ToString, added outputs of more types, fixed bugs
- TRttiProperty.Get/SetValue now works with static properties
- TRttiIndexedProperty is fully implemented, added new IndexParameters property that returns a list of property index parameters (it is also used when checking incoming arguments)
- fixed some bugs and incompatibilities with Delphi when getting class members and records
- TRttiType.AsRecord/AsOrdinal support
- added TRttiType.GetMethod(aCodeAddress: CodePointer): TRttiMethod that gets an instance of a method by its address (if RTTI information is available)
Looking forward to comments or questions if any.