G
G
Grustnui2015-10-15 15:30:22
PowerShell
Grustnui, 2015-10-15 15:30:22

Is there a concept of function declaration in powershell?

Good afternoon everyone, does powershell have the concept of a function declaration, as in C++, for example, or does a function have to be defined before it is used in code or imported from a module.
Let me explain what I mean. in si you could do something like

//Заголовок
int foo( int a,int b); //объявление функции
int main()
{
      //основной код
}
int foo(int a,int b) //определение функции
{
     return a+b
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2015-10-16
@Grustnui

No.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question