-
Notifications
You must be signed in to change notification settings - Fork 0
Variables Global
Benedict Albrecht edited this page May 20, 2026
·
3 revisions
The :global scope makes a variable visible for the entire file, and therefore also visible for any file that references this file.
<< name:global >>
class C1 ( ) {
aaa();
{
aaa();
aaa();
}
aaa();
}<:sub:> { <-ref,sub-> } <:>
<:ref:> <<name:global>> ( ) ; <:>
The aaa variable is visible everywhere in the file — to all siblings, upstream, downstream, and in any file that references this file.
<:sub:> { <-ref,sub-> } <:>
<:ref:> <<name>> ( ) ; <:>
With default scope, aaa would only be visible to younger siblings and their downstream.
See also:
:following·:up·:down·:siblings·:hook
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping