diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-11 21:37:00 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-11 21:37:00 -0400 |
| commit | 5fadfba312fcd0367a3341c5d194b7955627c177 (patch) | |
| tree | b459f27fec6028091d4b3af39f76d79348905148 /docs/type_system/function.md | |
| parent | 730faa451fbc3e7ae37c8a3b32b9d4d99007c666 (diff) | |
remove imcomplete functions
Diffstat (limited to 'docs/type_system/function.md')
| -rw-r--r-- | docs/type_system/function.md | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/docs/type_system/function.md b/docs/type_system/function.md index bca4c7e..76430a5 100644 --- a/docs/type_system/function.md +++ b/docs/type_system/function.md @@ -3,14 +3,11 @@ --- ```text - -MODE: INCOMPLETE | COMPLETE - STATELESS : NATIVE | NATIVE_INLINE | PROCESS | GENERATOR | REGEX_GENERATOR STATEFUL : TASK | ITERATOR | CLOSURE | BOUND | REGEX -Function[[MODE | STATELESS | STATEFUL]; JIT; IR; Body; INVOCATION_LIST; RETURN_TYPE; Collection[NAME_LIST; TYPE.SYMBOL]] +Function[[MODE | STATELESS | STATEFUL]; JIT; IR; Body; RETURN_TYPE; Collection[NAME_LIST; TYPE.SYMBOL]] ``` ## Type Body Object Definitions @@ -18,7 +15,7 @@ Function[[MODE | STATELESS | STATEFUL]; JIT; IR; Body; INVOCATION_LIST; RETURN_T ```c typedef struct { void *jit; - kpl_type *ir, *body, *invocation_list, *return_type, *var_list; + kpl_type *ir, *body, *return_type, *var_list; } kpl_type_body_function; ``` @@ -31,20 +28,12 @@ Fn[Generic.T; Collection[VAR_TREE_LIST; TYPE.SYMBOL]] `alias Function[...] # Inline Definition ```text -([x; y] x + y) // Fn[Any; Any.x; Any.y] -([I64.x; y] x + y) // Fn[Any; I64.x; Any.y] +([I64.x; I64.y] x + y) // Fn[Any; I64.x; I64.y] +([I64; I64.x; I64.y] x + y) // Fn[I64; I64.x; I64.y] ``` # Function Classes -## Incomplete - -A function with an incomplete type, type checking occurs at invocation its complete types are stored in its `INVOCATION_LIST` - -## Complete - -A function with a complete type, it stores it's `IR` and `JIT` - ## Native Native C code that can be called async |
