[fpc-devel] .NET Reflection vs RTTI

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Nov 20 10:43:29 CET 2007


On 20 Nov 2007, at 09:41, Michael Van Canneyt wrote:

> Easy: look up the method in RTTI - you'll get the address.
> Push all arguments on the stack (see Remobjects/Innerfuse  
> PascalScript on
> how to do this, you need some assembler for it), and return result  
> value.

And breaks every other FPC release to due bug fixes/changes in  
calling conventions, and needs to be ported to at least the default  
calling convention for every supported target.

> 2 days, tops.

You basically have to re-implement 80% of compiler/<arch>/cpupara.  
There's no way you can do that in two days. Not to mention that it's  
a horrible and completely unsupported hack.


Jonas



More information about the fpc-devel mailing list