diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-27 17:17:56 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-27 17:17:56 -0400 |
| commit | bb912b081ed339e4a5419bd3d2ffd7465f2f72d3 (patch) | |
| tree | 7f34b3af1a72672de1d12c8e23dda419c398dce3 /docs/type_system/shared.md | |
| parent | 003119b9f285e5610f56186bce845441409265ae (diff) | |
bottom up redesign
Diffstat (limited to 'docs/type_system/shared.md')
| -rw-r--r-- | docs/type_system/shared.md | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/docs/type_system/shared.md b/docs/type_system/shared.md deleted file mode 100644 index dcb31d5..0000000 --- a/docs/type_system/shared.md +++ /dev/null @@ -1,43 +0,0 @@ -# Shared - ---- - -Hold multiple references to the same object - -```text -%shared -``` - -# Garbage Collection - -A tracing mark and sweep garbage collector is used - -# Mutating - -```text -x : %shared Array $ (1; 2; 3) -^ x {[y] - y `push 4 -} -`log x // %shared Array[I64] $ (1; 2; 3; 4) -``` - -# Operators - -## ``get` - -## ``set` - -### Example sharing data between two shared objects - -```text -x : %shared 1 -y : %shared 0 - -z : ^ x {[x] x } -^ y {[y] y : z } -// same as above -y `set `get x -``` - - |
