View Single Post
Old Apr 26th, 2005, 2:20 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,473
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
You could always assign the variables a certain value (for instance an array of variable statuses)... each position in the array representing each variable with a slightly increasing numeric.

When you get into the function, you can see if the variables have values by checking their length, etc. Add up the elements of the status array to determine which values were set. Based on the value, you will know which variables were set and which execution path to take.

This is kinda like the chmod command in linux... but chances are, you need just basic function overloading, may need to be more specific.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote