Static enum? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Static enum? (
/showthread.php?tid=610964)
Static enum? -
Freaksken - 30.06.2016
So I am creating an include which has a couple of enums.
Looking at the
Keywords page I don't see any way to declare a static/private enum. Is there any other way to make sure the enum can not be used outside the file in which it is declared? Not that it will cause any conflicting behaviour in the include if the enum is used in a variable outside the file, because the variable created with it doesn't interact with the functionality in the include, but I was just wondering.
Re: Static enum? -
Vince - 30.06.2016
Nope. An enum also does not contain variables. It is merely an enumerated (hence the name) list of constants.
Re: Static enum? -
Freaksken - 30.06.2016
Quote:
Originally Posted by Vince
Nope. An enum also does not contain variables. It is merely an enumerated (hence the name) list of constants.
|
Ok thanks
.