On Wed, 2 May 2001, Andres Kroonmaa wrote:
> I'm in process of hiding most mempool internal funcs behind a Control
> function. Then I could move most of actual work to lib/ but we'd still
> need wrappers under src/ for what needs public declarations.
> I just wonder if that is a right path.
I would not do it. Having one function "switch" for 10 commands is no
different from having 10 functions. Besides #defines are evil.
Do not think C-functions, think how you would describe such an
interface. With memPoolControl or without, you would still need to
document all "commands" as separate interface items.
$0.02,
Alex.
Received on Wed May 02 2001 - 14:24:43 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:58 MST