cli: restrict source scope names to lexical task operands
This commit is contained in:
1 parent
364eb57bbc
commit
9001e56325
32 files changed
+307
-6
No files matched your search
@@ -150,3 +150,5 @@ DD-017 stable E7006 reasons (cl100k): Quick Reference 8,769 → 8,807 (+38), oth
|
||||
RFC 0037 related positions (cl100k): Quick Reference 8,807 → 8,859 (+52), other source docs 65,799 → 66,195 (+396), full source 74,606 → 75,054 (+0.60%). o200k groups are 8,895 / 66,397 / 75,292; Qwen2.5 9,135 / 67,810 / 76,945. AIR grows 46,937 → 47,328 (+391, +0.83%), 182,254 → 184,060 bytes; library/std.md is unchanged. Two factual roles locate an existing selected conflict or spawn; there is no new programming syntax, diagnostic code, semantic verifier state or runtime rule. One constant-sized origin is carried on each existing task loan. Necessary schema/source-map rules enter the bundles; RFC rationale does not. No empirical MCC benefit is claimed.
|
||||
|
||||
DD-019 unique diagnostic fields (cl100k): Quick Reference stays 8,859; other source docs 66,195 → 66,312 (+117), full source 75,054 → 75,171 (+0.16%). o200k groups are 8,895 / 66,517 / 75,412; Qwen2.5 9,135 / 67,933 / 77,068. AIR grows 47,328 → 47,445 (+117, +0.25%), 184,060 → 184,628 bytes; library/std.md is unchanged. Explicit payload names preserve the stable envelope and both guard/borrow identities. No language concept, syntax, code, verifier/runtime state or repair application is added; clients that previously read a capability payload as `kind` use `capability_kind`. No empirical MCC benefit is claimed.
|
||||
|
||||
Q-041 source scope names (DD-020, cl100k): Quick Reference 8,859 → 8,889 (+30), other source docs 66,312 → 66,484 (+172), full source 75,171 → 75,373 (+0.27%). o200k groups are 8,925 / 66,690 / 75,615; Qwen2.5 9,167 / 68,115 / 77,282. AIR remains 184,628 bytes / 47,445 cl100k tokens; library/std.md is unchanged. One existing lexical block identifier is explicitly excluded from ordinary value expressions, removing ineffective transfers and misleading repair hints. There is no new syntax, diagnostic code/reason, verifier/runtime state or feature. Former source aliases now reject; ordinary shadowing and AIR scope flow remain available. No empirical MCC benefit is claimed.
|
||||
@@ -221,6 +221,7 @@ scope s { // every task spawned in s must
|
||||
```
|
||||
|
||||
- **Spawning:**
|
||||
- a scope name is only the first operand of `task.spawn`; no aliases, `move` or ordinary value use (`E7006`);
|
||||
- effect `task.spawn`;
|
||||
- a value moved into a task must be `Send`, and data shared by `ref` must be `Share` (`E4001`, `E4002`);
|
||||
- two live tasks may not hold overlapping `mut` loans (`E4101`);
|
||||
|
||||
Reference in new issue
Block a user