[fpc-devel] Local procedures as procedural parameter

Peter Vreman peter at freepascal.org
Mon Mar 14 07:56:07 CET 2005

> With the above method, it should be relatively simple to implement
> local procedures (functions) as procedural parameters, without
> affecting the code generation of the current compiler.

The default calling convention is with registers. How do you want to
handle that? At beforehand from the procvar type it must be known if the
framepointer must be passed as first argument or not. The methodpointer
uses the 'of object' in the declaration.

The problem is not the codegeneration (that can be the same as done by
methodpointers) but the implementation in the parser and typechecking.

More information about the fpc-devel mailing list