Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(
    ctx: &mut CommandContext,
    form_id: u32,
    args: &[Value],
) -> Result<bool>
Expand description

Generic handler for global int-list forms (tnm_command_proc_int_list).

We implement the runtime subset:

  • array indexing get: LIST[i]
  • array indexing set: LIST[i] = value

More exotic sub-ops (bit ops, init, copy, etc.) can be added later.