2 ms·
Your first statement is exactly what I've arrived at. It's just not avoidable in general. I have to clarify that I'm not fixated on C#. Sure, you could create
by gmueckl 8y ago
Your first statement is exactly what I've arrived at. It's just not avoidable in general.
I have to clarify that I'm not fixated on C#. Sure, you could create a helper assembly in .NET that is a mess of essentially of disembodied functions for computing every slightly more complex function that happens to be in your program. But this breaks OOD.
In C/C++ you can't do quite the same. The best you could do there is break OOD and try to hide these global functions by using private headers (which are ugly in their own ways).