> 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. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel