woah! calm down there cowboy, yes that may look like a good idea at first, but it includes ALL of the function names from that namespace, so what if you wanted to use 2 namespaces that both had a function with the same name? It wouldn't know what to do with itself, and probably wouldn't do what you want it to.
Doesn't the compiler warn you when you do that? Because it kind of seems to me like it should. "Hey dude you got like six different functions named 'bluh()' available in this context which one do you want me to use here?"
Yeah, it probably would,
Actually, if the signatures are different (the int, int or void things), it just overloads them no problem. O.o
Note: not sure what they are called...
thats called Overloaded fuctions.
and here's a basic lesson about them, for anyone that doesn't know what that is.
You can have functions with the same name available in a scope, if each function has a different parameter list.
int foo(int x)
{return x;}
int foo(int x, int y)
{return x+y;}
so it uses the function based on how many parameters are in your function call.
foo(5); would use one, and
foo(5,5); would use the other.
This isn't the only time the parameter list in the function call might be different than the parameter list for the definition.
you also have the option of using default parameters, which are used in place of one included in the function call.
int foo(int x, int y = 5)
{return x+y)
then foo(5); and foo(5,5) would both result in the same thing.
but.. I'm not sure what would happen if you included a 2 param funtion with one default parameter, and a function with the same name and only 1 parameter, because then calling it would call both functions.