DCode

Covers Engine 2.0.0

function

Define a DCode function with its own scope. Use global name before reading or writing outer data; local is optional.

Syntax

[local] function <name>(<arguments>):

Available in

  • File scope
  • Executable DCode bodies

Example

function name(arguments):
    -- body