-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unused public stock variables end up in the p-code #119
Comments
Looking back, I think the original issue was that unused public variables issued warnings, while unused public functions didn't. However, they could be used, but just not obviously so (a few libraries use and access them exclusively by name). The solution at the time was to make |
I have another issue with the scope of public variables. Public functions are accessible throughout the script irrespective of the location where it is declared. But in case of public variables, it is required that they are declared before use. The PAWN Language Guide says the following,
So I really wonder if it should be labeled as a bug. |
Global variables behave like that too, so it is accurate. |
public stock variables are ending up in the P-Code when it shouldn't.
The text was updated successfully, but these errors were encountered: