Skip to content

Variables Reference

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

Variables: Reference <<'name'>>

Reference variables establish a dependency to a matching object without overwriting the variable. This means following references will still refer to the original object, not to the one matched here.

Syntax

<< 'name' >>

Example

class C1 ( ) {
  let hhh ;

  function F1 ( ) {
    let aaa = hhh;
    let bbb = hhh;
  }
}

With reference variable <<'name'>>

<:let:> let <<name>> <| = <<'name'>> <||> |> ; <:>

The <<'name'>> creates a dependency to the matching hhh object but does not overwrite the name variable. Later references to name still resolve to the original binding.

Compared to standard variable <<name>>

<:let:> let <<name>> <| = <<name>> <||> |> ; <:>

With a standard <<name>>, the variable is overwritten, so subsequent references resolve to the new object.


See also: Path Variables · Uppercase Variables · All Variables

Clone this wiki locally