We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b40b73 commit 416d32dCopy full SHA for 416d32d
docs/modules.md
@@ -44,12 +44,12 @@ sub-scope which starts with a colon and is demarcated using indentation (or brac
44
import tx.c.puts
45
46
module my.file.mod.submod:
47
- import another.mod.*
+ import another.mod.get_string
48
49
- SUB_FIELD := c"42"
+ SUB_FIELD := get_string()
50
51
- main(): ## this is outside the submodule, in my.file.mod
52
- puts( submod.SUB_FIELD ) ## relative qualified identifier
+ main(): ## declared outside the submodule, gets the full name my.file.mod.main
+ puts( submod.SUB_FIELD ) ## submod.SUB_FIELD is looked up relative to my.file.mod
53
54
Submodules may contain submodules of their own, and so on. However it is usually inadvisable to nest them within
55
the same file.
0 commit comments