Adding Arguments to heavily used existing routine
Posted: Wed Feb 11, 2009 12:46 am
We've got a routine with 5 arguments that's used in a lot of our jobs.
We would like to add another argument to this routine, but don't want to have to go in and modify all the jobs that currently call it. We'd rather just let a default value kick in if a value isn't provided.
But we are having a hard time trying to figure out how to do it without causing abortions in the jobs that refer to it.
My only thought at this point is to create a copy of the existing routine and add the new argument to this new routine. Then change the existing routine to simply call the new routine and supply a default parameter to the new argument.
Are there any other options?
We would like to add another argument to this routine, but don't want to have to go in and modify all the jobs that currently call it. We'd rather just let a default value kick in if a value isn't provided.
But we are having a hard time trying to figure out how to do it without causing abortions in the jobs that refer to it.
My only thought at this point is to create a copy of the existing routine and add the new argument to this new routine. Then change the existing routine to simply call the new routine and supply a default parameter to the new argument.
Are there any other options?