Skip to content
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

Suggestion: raise an error on attempt to access non-existant (nil) variables #2

Open
Sparker95 opened this issue Oct 29, 2019 · 1 comment

Comments

@Sparker95
Copy link

Arma doesn't raise an error if we call a code-variable which is not defined:
0 call fnc_codeDoesNotExist; // No error
Which causes obvious inconvenience.

More thoughts about this feature:

  • Does it need to work with private variables too?
  • Will it work with with uiNamespace do ?
@Sparker95 Sparker95 changed the title Suggestion: raise an error on attempt to access a non-existant (nil) variables Suggestion: raise an error on attempt to access non-existant (nil) variables Oct 29, 2019
@dedmen
Copy link
Owner

dedmen commented Oct 29, 2019

Will it work with with uiNamespace do ?

yes, any global variable no matter what namespace is currently active.

Does it need to work with private variables too?

That needs to be configurable.. somehow. ADE doesn't have a config thing yet.
So maybe it will just be enabled/disabled via script commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants