+ 1
What is "namespace SoloLearn". Why is it used.
In C++ I saw "using namespace standard" didn't understood even then.
3 Respostas
+ 4
it's a convention, you can name it as you Want. It is used to work with many scripts: if you had already wrote a script, and this script has many variables or functions that you need in your new script, you can just import everything without the need to re-write every single variable or function.
If your namespace is LoL, just add "using LoL" at the begining of your new script.
Now We you can use variables,functions and classes of the LoL script in your new script. Supposing in the LoL script there is a function called Hello, you Want to call this function in your new script, you have to do this:
LoL.Hello()
#remember to ad the "using LoL" at the beginning
+ 1
Thanks a lot.
0
Best