[fpc-pascal] A better way?
florian at freepascal.org
Thu Apr 14 19:59:48 CEST 2016
Am 14.04.2016 um 16:25 schrieb Michael Van Canneyt:
>> That would be a solution but it’s not very pretty. Having 2 classes in the
>> same unit that need knowledge of each other but are still mutually
>> exclusive is also bad design in my opinion.
> Each is entitled to his opinion.
> Practical people use the tools at their disposal how they are meant to use.
> In this case the tool tells you that the 2 classes should be in 1 unit.
> So, you can waste your time looking for a way out, or just use the tool as
> it is meant.
Or do it in two separate include files and add include both in the unit. FPC can do the C++ way :))))
More information about the fpc-pascal