4M4Life.com
Discussion Zone: => General Chat => Topic started by: bloo-apple on April 30, 2010, 03:50:13 PM
-
(http://i.msdn.microsoft.com/Dd788199.f8e4ad6f-9140-43b1-b931-28c9ba11cc8e%28en-US,BTS.10%29.gif)
What do you guys think of overload functions? A little risky logically?
-
[refle]http://www.dvdonline.com.au/images/high_risk.JPG[/refle]
-
not sure completly what it is looks like a waste of resorces
-
not sure completly what it is looks like a waste of resorces
An overload function is a code with the same name of any function. Something like this..
FUNCTION myFunction ( VAR );
FUNCTION myFunction ( VAR, VAR, VAR );
However when it is executed the function will only execute the code with the same amount of parameters.
Is it a good idea to do this? I think if the function does a very similar task than it is OK to use this, but I am not even sure about that.
-
[refle]http://www.dvdonline.com.au/images/high_risk.JPG[/refle]
whats up with the jackie chan look alike, that is pretty mean of jet li
-
its like american rule # 1 if you cant beat em look and act like them lol