In short:
To be able lint an initialized variable, it has to be "Define", not "Default"
To be able to save/rollback a variable should be "Default".
To marry two, I’ve aliased "Default" variable to "Define" one.
Code: Select all
# for lint
define rooms_init = { # "e" - enabled, "n" - nodes
home : { "e" : True, "n": [yard, city], },
}
# for save
default rooms = rooms_init
I’m lost completely...PyTom wrote:You're not allowed to alias an init time variable with a non-init-time variable.
1. Am I right that:
"Define" == init time variable
"Default" == non-init-time variable
2. What breaks exactly, if they are aliased?
3. What is the proper way to handle such aliasing?