DCode

Covers Engine 2.0.0

arrays and objects

Arrays have zero-based indexes; objects have string keys. Nest either form, preserve null, and pass values to plugin functions in either backend. Native C++ permits replacement of existing items and fields but keeps array lengths and object keys fixed; push, pop, and adding object keys require Lua.

Syntax

[value, ...] or {key: value, ...}

Available in

  • File scope
  • Executable DCode bodies