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

private <array> marked as deprecated #20

Closed
Dorbedo opened this issue Nov 30, 2017 · 1 comment
Closed

private <array> marked as deprecated #20

Dorbedo opened this issue Nov 30, 2017 · 1 comment
Assignees

Comments

@Dorbedo
Copy link

Dorbedo commented Nov 30, 2017

private <array> shouldn't be marked as deprecated in arma 3.
A case, where it is usefull (defining variables on another scope):

private ["_myVar1", "_myVar2"];
switch (_switchvar) do {
    case 1: {_myVar1 = 1; _myVar2 = 1;};
    case 2: {_myVar1 = 2; _myVar2 = 2;};
    case 3: {_myVar1 = 3; _myVar2 = 3;};
    default {_myVar1 = 0; _myVar2 = 0;};
};

Or like in CBA, where you prevent variables from beeing overwritten:
https://github.com/CBATeam/CBA_A3/blob/7a1add1fc3f6227e5a10e329403d31138d5314cf/addons/settings/XEH_preInit.sqf#L45

@Armitxes
Copy link
Owner

Armitxes commented Mar 3, 2018

Resolved in https://github.com/Armitxes/VSCode_SQF/releases/tag/1.0.5
Marketplace update available is VS Code.

Thanks for the issue report.

@Armitxes Armitxes closed this as completed Mar 3, 2018
@Armitxes Armitxes self-assigned this Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants