Skip to content

Variables Uppercase

Benedict Albrecht edited this page Jun 2, 2026 · 3 revisions

Variables: Uppercase <<NAME>>

Uppercase variables overwrite the variable but do not establish a dependency to any object.

Syntax

<< NAME >>

Example

class C1 ( ) {
  let hhh ;
  let aaa;

  let aaa = hhh;

  let aaa;
}

With uppercase <<NAME>>

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

Each let declaration overwrites the NAME variable, but no dependency is created between the objects. The variables are treated as independent declarations.

Compared to standard <<name>>

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

With a standard <<name>>, each declaration both overwrites the variable and establishes a dependency to the matching object.



In Practice

The Basics grammar uses <<NAME>> for class names, function names, and variable declarations:

Object Declaration Why uppercase?
class class <<NAME:up>> The class name should be visible (:up) but declaring a class should not create a dependency to another object
function function <<NAME:up>> Same - the name is declared, not referencing something
variable let <<NAME>> Declaring a variable just stores the name. The dependency comes from the optional = <<'name'>> part

In testFile.txt, let aaa ; and let bbb ; each capture a NAME without creating dependencies. But let xxx = zzz ; captures NAME = xxx (no dependency) and 'name' = zzz (creates dependency).


See also: Path Variables · Reference Variables · All Variables

Clone this wiki locally