In php underscore ("_") it's declaration of private/protected function but i didn't found anything about it in PAWN. Does it have any meaning in PAWN?
What is meaning of underscore in front of function in PAWN?
227 views Asked by Paradiso At
1
It depends.
In function name doesn't mean anything so
_hellojust means that the function is named_hello. (Then, if you prefer, you can read all function which starts with an underscore as function that must not be called in public code. But PAWN doesn't force you)If you mean the underscore in the parameters when you call a function, then it means "Use the default value" so if you have
then you can do
hello(_)andhellowill be called withnumwith5(default value).