○
Planned This feature is planned but not yet implemented.
In-file abstract/override pattern - needs restructuring to use cross-module imports.
Code
// Test 430_003: Abstract with Override Only (No Default)
// When an abstract event has an override but NO default:
// - The override IS the handler
// - Calling `event.default()` would be a compiler error (no default exists!)
//
// This is "provide the implementation" pattern.
~import std/io
// Define abstract event with NO default implementation
~[abstract] tor greet { name: string }
| greeted string
// Provide the ONLY implementation (this becomes the handler)
~greet => greeted { message: name }
// Use it
~greet(name: "world")
| greeted g |> io.println(g.message)
Expected output
world
Flows
flow ~greet click a branch to expand · @labels scroll to their anchor
greet (name: "world")