[fpc-devel] OO rewrite - technical questions

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Jul 19 13:55:37 CEST 2010

On 19 Jul 2010, at 11:40, Hans-Peter Diettrich wrote:

> One requirement in a transformation into OOP is the replacement of all affected procedures by methods, and of many (currently global) reference variables by class members. When e.g. later multiple parser instances are created, one for every unit to compile, the current compiler directive handling should be redesigned.
> Does somebody have experience with (lists of) procedural variables?

See ncnv.pas, ttypeconvnode.first_call_helper. In fact, for the directives it's even simpler because those methods don't have to be overridable (so you can call them directly instead of having to use wrappers).


More information about the fpc-devel mailing list