[OpenSER-Devel] SF.net SVN: openser: [2662] trunk/modules

Dan Pascu dan at ag-projects.com
Tue Sep 4 11:11:10 CEST 2007


On Tuesday 04 September 2007, Henning Westerholt wrote:
> > Then what about a function that receives 2 parameters, a str and an
> > int which both need conversion from char* to str respectively int?
> > Will you write another special conversion function to handle both
> > arguments? What if the function changes and receives the int on the
> > first position and the string on the second? How many conversion
> > functions will we need to cover all cases?
>
> At the moment most of the modules implement their own fixup functions.
> If there is any "mess", than its in my opinion this practice.

Unless you provide real generic functions that can be used by anyone for 
anycase, the original situation is still there. You only covered some 
common cases, but people will continue to write their own fixup functions 
because they can't fit the narrow scope of the provided fixup functions 
with their cases.

-- 
Dan



More information about the Devel mailing list