What is "const" for?
#1

I've seen it a lot of times in some callbacks or similar.

pawn Код:
public Custom(/*>>>>>>>*/ const /*<<<<<<<<*/ text[])
What is that?
Reply
#2

It says, that the variable is constant and it can not be overwritten.
Reply
#3

It's like read-only on Windows.
Reply
#4

You can find a good explanation in the pawn-lang.pdf file.
Reply
#5

Quote:
Originally Posted by ¤Adas¤
It says, that the variable is constant and it can not be overwritten.
Enough for me... thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)