Robbie Hatley wrote:
> Bryan Parkoff asked:
>
>> I write my large project in C++ source code. My C++ source code
>> contains approximate four thousand small functions. Most of them are
>> inline.
>
> Ewww. Don't do that. If these functions are all doing nearly
> the same thing (as I very much suspect), replace those 4000
> functions with maybe 7 or 13 or 21 functions taking arguments
> (passed by value or by reference, maybe returning a value and
> maybe not, as the problem demands) to configure their behavior.
>
Where did he say they were doing nearly the same thing?
There's nothing wrong with using lots of small function if they make the
code clearer.
--
Ian Collins.