Page MenuHomeFeedback Tracker

Can overwrite final code
Closed, ResolvedPublic

Description

It is possible to delete variable containing final code by assigning nil to it, then create new variable with the same name, hence overwriting the content.

Details

Legacy ID
2110507388
Severity
Major
Resolution
Fixed
Reproducibility
Always
Category
Engine
Steps To Reproduce

uiNamespace setVariable ["bis_fnc_spawn", 42];
hint str (uiNamespace getVariable "bis_fnc_spawn");

result a bunch of code, because "bis_fnc_spawn" is compiled final.

uiNamespace setVariable ["bis_fnc_spawn", nil];
uiNamespace setVariable ["bis_fnc_spawn", 42];
hint str (uiNamespace getVariable "bis_fnc_spawn");

success, result is 42

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Engine.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to Major.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 2110507388.May 7 2016, 7:55 PM
Killzone_Kid edited a custom field.