D
Dave
I am using some recipes to do some calculation. But there are
situation that I need to give extra parameters to the existing
function. For example, the recipe has a function called:
foo (int x, int y)
But now I want to give another parameter, say, float z.
One way is I just change the recipe function to accept 3 parameters,
but I think there should be a more elegant way to do that. Because I
don't want to mess up the existing library/functions.
Thanks,
Dave
situation that I need to give extra parameters to the existing
function. For example, the recipe has a function called:
foo (int x, int y)
But now I want to give another parameter, say, float z.
One way is I just change the recipe function to accept 3 parameters,
but I think there should be a more elegant way to do that. Because I
don't want to mess up the existing library/functions.
Thanks,
Dave