spec: accept RFC 0013 and add spec 15, the .aji source language 0.1

Owner decisions D1-D7 and the boundary rule (source may hide
representation mechanics, never authority, allocation, ownership
transfer, synchronization, external effects or recoverable failure).
spec 15 normative: items, types, statements, expressions, places and
borrows, explicit move (named values), outcome matches and 'or trap',
scope/shield/lock blocks (lock lowering defined exactly), select,
channels, allocation, frame storage, lexical borrow scopes, inferred
features, one canonical spelling per construct. grammar.ebnf replaced;
E7001-E7007; E3101 gains suggested_effects; spec 01 examples updated.
This commit is contained in:
dev committed 2026-10-05 10:35:55 +03:00
1 parent 0e25a17e9d
commit 65b10e3fb5
9 files changed
+471 -56

No files matched your search

+1
View File
@@ -152,6 +152,7 @@ In a module that declares `effects`:
- For every `intrinsic` in `f` (§11): the intrinsic's effect is in `effects(f)`, otherwise `E3101`.
- For every other instruction whose contract names an effect (for example `task.spawn`, `channel.make`, and in a module declaring `cancellation` every suspending operation, spec 04 §37.4): that effect is in `effects(f)`, otherwise `E3101`.
- Because every function is checked against its direct callees, the rule holds transitively, including for recursion.
- Each `E3101` carries `suggested_effects`: the function's declared effects plus every missing one, sorted. Effects stay declared by the programmer; the suggestion only makes the repair mechanical.
**Indirect calls (normative for future features).** When function values are introduced, the effect set MUST be part of the function type, for example `fnptr<(u8) -> void effects [io.write]>`, and an indirect call is checked against that set exactly like a direct call. Otherwise dynamic calls would break transitivity.