<< varislock | Memory manager functions | varunlock >> |
varlock(scope, variable_name) |
a string: 'global', 'base', 'caller', 'local'.
a string: variable name.
varlock locks a variable.
Locked variables cannot be killed.
ans variable cannot be locked.
y = 3;
varislock('local', 'y')
varlock('local', 'y')
varislock('local', 'y')
y = 4
varunlock('local', 'y')
varislock('local', 'y')
y = 4
varlock('local', 'ans')
varislock('local', 'ans')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET