|
x-engine-c v0.2.13
The C engine for x-lang
|
Object-level primitive operations (make, call dispatch). More...
Functions | |
| x_obj_t * | x_obj_prim_make (x_obj_t *p_base, x_obj_t *p_args) |
| x_obj_t * | x_obj_prim_call (x_obj_t *p_base, x_obj_t *p_args) |
Object-level primitive operations (make, call dispatch).
Invoke an object's type-dispatch call handler.
Looks up the call field on the object's type struct and dispatches. For procedure-typed call handlers, invokes via x_type_procedure_call to support closures as type callbacks.
| p_base | x_obj_t* – Base (execution context) |
| p_args | x_obj_t* – (callable . args) |
Construct a new object via its type's make callback.
Dispatches to the appropriate constructor based on the object's type (static atom, static pair, or registered type with make handler).
| p_base | x_obj_t* – Base (execution context) |
| p_args | x_obj_t* – (prototype-obj flags data...) |