blob: 4ef3bbb98c95866c7248a4f0208e9f726625bac4 (
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
28
29
30
31
32
|
# Select
---
A symbol associated with a type
```text
Select[[SINGLE | MULTIPLE] Type; Collection[VAR_TREE_LIST; .symbol : %const Value]]
```
## Type Body Object Definitions
```c
typedef struct {
kpl_ptr type, var_tree, var_list;
} kpl_type_body_select;
```
# Alias
```text
Enum[Generic.T; Collection[.symbol : %const Value]] `alias Select[[SINGLE]; Generic.T; Collection[VAR_TREE_LIST; .symbol : %const Value]]
Mask[Generic.T; Collection[.symbol : %const Value]] `alias Select[[MULTIPLE]; Generic.T; Collection[VAR_TREE_LIST; .symbol : %const Value]]
```
## Definition Example
```text
E : Enum[I64; .a; .b; .c]
`log E // Enum[I64; .a : 0; .b : 1; .c : 2]
```
|