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

Henning Westerholt henning.westerholt at 1und1.de
Tue Sep 4 12:28:08 CEST 2007


On Tuesday 04 September 2007, Dan Pascu 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.

Sure, 

it would be really nice to have some set of generic fixup functions. I'd like 
also the idea do more of the parameter checks in the core.

But at the moment i've some higher priorized stuff on my list, e.g. extending 
the database interface, further improvements of carrierroute, tests and other 
QA stuff. So i can't give you an exact date when i'll be able to work on this 
issue again at the moment.

I've you're are really dissatisfied with the current state (and my work) in 
this area, just improve it. :-)

Cheers, 

Henning



More information about the Devel mailing list