clarify scoped names a bit more

This commit is contained in:
Irmen de Jong
2023-12-28 16:36:29 +01:00
parent 9c1b11d605
commit 078bfefe41
3 changed files with 15 additions and 2 deletions

View File

@@ -270,6 +270,15 @@ Examples of valid identifiers::
приблизительно
π
**Scoped names**
Sometimes called "qualified names" or "dotted names", a scoped name is a sequence of identifiers separated by a dot.
They are used to reference symbols in other scopes. Note that unlike many other programming languages,
scoped names always need to be fully scoped (because they always start in the global scope). Also see :ref:`blocks`::
main.start ; the entrypoint subroutine
main.start.variable ; a variable in the entrypoint subroutine
Code blocks
-----------