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). Jonas_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
