class Result
base Result interface.
implemented by Constant, SigStream, and EvtStream.
index
static functions
-
Result\new(type, meta)– construct a new Result.
result interface
-
result\dirty()– return whether this Result was changed in the current tick. -
result\fork()– create a mutable copy of this Result. -
result.type– the type of this Result's value. -
result.metatype– the metatype string for this Result. -
result.meta– documentation metadata.
details
static functions
-
– construct a new Result.
parameters:
- the type
- the meta table
result interface
-
– return whether this Result was changed in the current tick.
returns:
- (boolean)
-
– create a mutable copy of this Result.
Used to insulate eval-cycles from each other.
returns:
- (Result)
-
– the type of this Result's value.
-
– the metatype string for this Result.
one of = (Constant), ~ (SigStream), ! (EvtStream).
-
– documentation metadata.
an optional table containing metadata for error messages and documentation. The following keys are recognized:
- name: optional name
- summary: single-line description (markdown)
- examples: optional list of single-line code examples
- description: optional full-text description (markdown)