blob: bc083e289095ad2953cea8d9cf7e24338964ac0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Overload
---
List of complete functions, selected by signature
```text
Overload[[] Collection[VAR_LIST; Function[]]]
```
## Type Body Object Definitions
```c
typedef struct {
kpl_ptr var_list;
} kpl_type_body_overload;
```
## Example
```text
add : Overload[Fn[I64; I64.x; I64.y]; Fn[F64; F64.x; F64.y]; ...]
`log add `sync (1; 2) // Valid calls first
`log add `sync (1.1; 2.2) // Valid calls second
`log add `sync (1; 2.2) // Invalid no signature match
```
|