- lexer: backtick raw text literal — content verbatim, no escape
processing, common source margin removed at lex time; `${ }` raw and
`{{ }}` auto-escaping holes
- `{{ e }}` desugars to `esc(${e})` in parser.ml — a Call on the `esc`
in scope, so types/owner/emit/.wob/VM are untouched
- WO-E004 unterminated raw literal; WO-E005 newline inside "..." —
closes a hole where a missing quote silently ate the rest of the file
- wo-html: `Component` interface, `render_all`, `Layout`, README
- framework: `ok_html` joins ok_text/ok_json in http/types.wo
- site + shop restructured to one-feature-one-module MVC (view +
controller per directory, model at the root, bootstrap-only main)
- removed the filler `pad: Int` convention — verified unnecessary for
plain classes, interface dispatch, containers and actors
- corrected recorded claims: gap #1 blocks neither the build nor the
layout; a class crosses module lines, only a free fn is scoped
- docs/guides/language-surface.md — the full grammar inventory
- story 37 landed and moved to done/
Gates: oop-accept MET, oop-e2e 116/0, woc-test 556/0, site 11/0,
web-app 46/0, fibers 10/0, db-actor 8/0
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
28 lines
807 B
Text
28 lines
807 B
Text
-- iteration 24: no hangs, ever. A receive that traps kills the ACTOR:
|
|
-- the parked caller is error-unparked into a catchable WO_T_ACTOR
|
|
-- (callee died mid-call), and a later call to the same address traps
|
|
-- immediately (call-to-dead). The runtime prints the fiber-trap report
|
|
-- to stderr; stdout carries only the caller's side.
|
|
class Q {
|
|
n: Int
|
|
}
|
|
|
|
class Bomb {
|
|
fn receive(msg: Q) -> Int {
|
|
return msg.n / (msg.n - msg.n); -- DIV0: the actor dies mid-call
|
|
}
|
|
}
|
|
|
|
fn call_one(b: actor Q, n: Int) -> Text {
|
|
let r = call(b, Q { n: n });
|
|
return "replied ${r}";
|
|
}
|
|
|
|
fn main() -> Int {
|
|
let b: actor Q = spawn Bomb {};
|
|
let first = try call_one(b, 7) catch (e) e.msg;
|
|
print("mid-call: ${first}");
|
|
let second = try call_one(b, 8) catch (e) e.msg;
|
|
print("to-dead: ${second}");
|
|
return 0;
|
|
}
|