[fpc-devel] OO rewrite - technical questions

Michael Schnell mschnell at lumino.de
Mon Jul 19 12:02:55 CEST 2010


  On 07/19/2010 11:40 AM, 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?

>
> Any ideas?
>
While I in fact don't understand the meaning of your post:

Regarding OOP, would it not be better to do lists of objects with class 
procedures instead of lists of procedural variables. So these classes 
would be children of a parent class and you can do a clean list (TList 
derivate, array or whatever) of same.


-Michael



More information about the fpc-devel mailing list