Skip to content

References

Benedict Albrecht edited this page May 20, 2026 · 4 revisions

References

References substitute recurring objects in certain places. They do not appear as child objects; instead, their variables are added to the object that refers to them.

Important: References do not accept empty strings.

Syntax

<-{ refA, refB ... }->

Example

Define reusable parameter types:

<:string:> string <<var>> <:>
<:int:> int <<var>> <:>

Use them as references within a function definition:

<:function:> function <<name>> ( <-{string, int}-> ) { <---> } <:>

In this example, the function object can accept string or int parameters. The variables from the referenced objects (<<var>>) are added to the function object's variable set, but the referenced objects themselves do not appear as children in the tree.

Clone this wiki locally