[fpc-devel] Improved RTTI compromise

Arnaud Bouchez webcontact01 at synopse.info
Wed Dec 7 09:45:53 CET 2016


Don't forget that there is some working code of interface "Invoke" and 
"fake" in mORMot.pas:
- working with FPC_HAS_EXTENDEDINTERFACERTTI or manual-registered RTTI,
- x86 and x64 support on Windows and Linux ABI
- ARM 32-bit and 64-bit (preliminary) support
- well tested under Windows, good coverage under Linux, preliminary 
testing under *BSD.

"Invoke" is indeed only half the way.
Creating "fake" interfaces are also needed for any modern

It is not using TValue, but currently JSON serialization, working with 
by-representation transfer (e.g. objects are transmitted by field 
values, not class instance).
It was design to be extended to support a TValue-like input and output.

It currently lacks some less common targets (CPU & ABI).
But could be used as a starting point.

Arnaud



More information about the fpc-devel mailing list