summaryrefslogtreecommitdiff
path: root/docs/type_system/namespace.md
blob: 44483bc411981a231e7a2c0fed71eda39d1725ae (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
33
34
35
36
# Namespace

---

```text
Namespace_class `alias Enum[.native; .file]
Namespace[Namespace_class; EXPORTS; PROCESS]
```

A file with code

## Exports

### \`export

##### Type must be Fn, Overload, Const or Shared to export

## Imports

### \`import

```text
Namespace : `import Const[String]
```

### \`use

```text
Namespace : `use Const[String]
```

## Main

### \`is_main

Run this function if the file is not imported