Skip to main content

dispatch_construct

Function dispatch_construct 

Source
pub fn dispatch_construct<S: ValueStore>(
    store: &mut S,
    callee: Value,
    args: &[Value],
) -> RuntimeResult<CallDispatch>
Expand description

new dispatch (design §7.2): callee must be a class; the constructor — when present — runs with the fresh instance as this and the instance is always the result.