Script|libdeng2: Creating records with expressions
Previously it was only possible to create a new record using the “record” statement or the Record() function. This commit makes it possible to put “record” in front of any expression that refers to an identifier, and that identifier will be created as a (sub)record.
For instance:
# Old way:
record a
a.b = 1
record a.sub
# Alternatively: a.sub = Record()
a.sub.c = 2
# New way:
(record a).b = 1
a.(record sub).c = 2
Script|libdeng2: Creating records with expressions
Previously it was only possible to create a new record using the
“record” statement or the Record() function. This commit makes it
possible to put “record” in front of any expression that refers to
an identifier, and that identifier will be created as a (sub)record.
For instance: