Language reference
d6's default and preferred source extension is .d6. Existing .di
files remain supported for backward compatibility. Extensionless imports
prefer .d6 when both suffixes exist; see
Source files and imports.
d6's language and standard-library reference is organized by topic:
- Core syntax and values — expressions, control flow, assignment, numbers, ranges, and symbols.
- Functions, closures, and calls — blocks, keyword and variadic arguments, and call-site spread.
- Classes, modules, and methods — inheritance, singleton methods, visibility, operators, and method references.
- Gradual typing and exceptions.
- Collections and Enumerable.
- Runtime features and debugging — Fibers, I/O entry points, bytecode diagnostics, regular expressions, and compiler overview.
Related guides cover Time, Fibers, Threads, and I/O and native services in more depth.
Compatibility links
These links preserve commonly referenced anchors from the former single-page reference: