Bresacon Posted October 8, 2020 Posted October 8, 2020 Like this: Global Const Enum $g_eiNull, $g_eiFirst, $g_eiSecond Const Enum, as a local variable, works though. But Au3Check spits syntax error in Local Const Enum.
TheXman Posted October 8, 2020 Posted October 8, 2020 Const & Enum are mutually exclusive. It is either one or the other. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Bresacon Posted October 8, 2020 Author Posted October 8, 2020 (edited) But Const Enum passes Au3Check... I want to protect the constants in case I derp out. Edited October 8, 2020 by Bresacon
TheXman Posted October 8, 2020 Posted October 8, 2020 (edited) Saying "Const Enum" is redundant. An Enum is implicitly constant. If you look at the help file for Enum, you do not see an option to use "Const". As to why declaring a "Const Enum" doesn't trigger a syntax error, I don't know. That's a good question. Edited October 8, 2020 by TheXman Musashi 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now