This shows you the differences between two versions of the page.
— |
arma3:scripting:private-array-keyword [2020-11-21 04:35] (current) snakeman created initial page. |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ArmA 3 SQF Private Array or Keyword? ====== | ||
+ | |||
+ | **2020-11-21** | ||
+ | |||
+ | ArmA 3 SQF whats wrong with private array? | ||
+ | |||
+ | <code cpp> | ||
+ | private ["_var1"]; | ||
+ | _var1 = 33; | ||
+ | </code> | ||
+ | is performance and readability wise worse than: | ||
+ | <code cpp> | ||
+ | private _var1 = 33; | ||
+ | </code> | ||
+ | |||
+ | Dedmen: private array wastes performance. while private keyword gains performance | ||