RecurLoop/ Documentation
Gui/APIv0.2.12

Gui:EventSignal

Compile a typed function.

Input-event callback. Return nonzero when the event is handled, or 0 to allow further processing.

Syntax

recurloop
[<name:id>] "(" <parameters:raw> ")" "->" <result:qualified-id> [<body:block>]

Example

recurloop
fn add(a:i64, b:i64) -> i64 { return a + b }

Arguments

  • —
  • : —
  • body — Statements in braces. return supplies the result.
  • parameters — Comma-separated name:type pairs; leave empty for no parameters.
  • result — Return type; use void when no value is returned.