Using Delphi7Pro, we have a class which is rather large. We want to extract some of the functionality out of it into its own unit. Now, we could just create a function but that loses the object-orientedness of the software as a whole. We could create a new class and create an instance of it, with the variable defined in the interface section (ie global) - also not a good idea. Or we could simply use the class without creating an instance of it, as there are no member properties, only methods (dangerous? bad practice?). OR maybe there's a fourth way - and I'm thinking helper classes here, but I could be way off track!
This may not be relevant but it might help understand the problem:
I have a list of class A objects. Every second, each object performs a calculation against itself and each of the other items in the list in turn. That then returns a value based on that calculation. This calculation is several hundred lines of code (it's not just numbers, but decisions as well).
As already stated, I'm aware of different ways of doing this, just wanted advice or other suggestions really. It's a SIL2 project so sloppy programming is not tolerated.