On Die, Jan 14, 2003 at 11:32:35 -0500, Steven J. Sobol wrote: > More info on this. Aegir's <[FastTemplate]> style contains a copy of > the FastTemplate class that contains what appears to be an overloaded > member function: > > function clear_parse ( $ReturnVar = "") > function clear_parse () > > I'm not sure if I can get rid of either one. Trying overload() didn't work > either, but I think I'm misunderstanding the usage of overload().
I have seen a similar case in another PHP project. Seems to me as if someone used to overloading (probably with a Java background) coded this. You can safely remove the clear_parse() function: It is about the same as the other function, since you can call that with an empty parameter list as well - that is what the default parameter is used for. Another way to "simulate" overloading is to count the parameters, and act accordingly inside the function... Regards, Karsten -- fishfarm netsolutions - Karsten Dambekalns Echternstra�e 73 - 38100 Braunschweig Tel. +49 531 1232902 [EMAIL PROTECTED] Fax. +49 531 1232906 http://www.fishfarm.de/ ----------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
