Project

General

Profile

« Previous | Next » 

Revision 3ced433b

Added by skyjake almost 11 years ago

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences