024 registry scope composition

○ Planned This feature is planned but not yet implemented.

Aspirational design sketch: scope composition (scope(other)), globs (users:*),

Failure Output

Showing last 10 of 23 lines
  --> tests/regression/400_RUNTIME_FEATURES/430_RUNTIME/430_024_registry_scope_composition/input.kz:20:1
    |
 20 | ~pub tor users.create { name: string }
    | ^

error[PARSE003]: single continuation branch 'dumped' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> string`
  --> tests/regression/400_RUNTIME_FEATURES/430_RUNTIME/430_024_registry_scope_composition/input.kz:29:1
    |
 29 | ~pub tor debug.dump-state {}
    | ^

Code

input.kz

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (source: std/io:println)
flow ~register click a branch to expand · @labels scroll to their anchor
register (source: scope(internal) // Compose: include internal scope users:* // Glob: all events under users.*)
flow ~register click a branch to expand · @labels scroll to their anchor
register (source: scope(user) // Compose: include user scope admin:* // Glob: all admin events [debug]debug:* // Conditional: only with --debug flag)
flow ~parse.source click a branch to expand · @labels scroll to their anchor
parse.source (source: USER_CODE, allocator: std.heap.page_allocator)
flow ~parse.source click a branch to expand · @labels scroll to their anchor
parse.source (source: DEBUG_CODE, allocator: std.heap.page_allocator)
flow ~parse.source click a branch to expand · @labels scroll to their anchor
parse.source (source: USER_CODE, allocator: std.heap.page_allocator)
flow ~parse.source click a branch to expand · @labels scroll to their anchor
parse.source (source: ADMIN_CODE, allocator: std.heap.page_allocator)

Test Configuration

MUST_RUN