diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-06-17 14:24:51 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-06-17 14:24:51 -0400 |
| commit | 1ccb3c92a4c074a12550c584d3651ace2d7c0131 (patch) | |
| tree | 3288fc8f7b6bb9e31fe43cfbd3d5e18e61d0207e /docs/type_system/shared.md | |
| parent | 7964cf08ac807ac9e7b6d579a25321a23adc9139 (diff) | |
qualifiers as %
Diffstat (limited to 'docs/type_system/shared.md')
| -rw-r--r-- | docs/type_system/shared.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/type_system/shared.md b/docs/type_system/shared.md index 9ddef26..dcb31d5 100644 --- a/docs/type_system/shared.md +++ b/docs/type_system/shared.md @@ -5,7 +5,7 @@ Hold multiple references to the same object ```text -`shared +%shared ``` # Garbage Collection @@ -15,11 +15,11 @@ A tracing mark and sweep garbage collector is used # Mutating ```text -x : `shared Array $ (1; 2; 3) +x : %shared Array $ (1; 2; 3) ^ x {[y] y `push 4 } -`log x // `shared Array[I64] $ (1; 2; 3; 4) +`log x // %shared Array[I64] $ (1; 2; 3; 4) ``` # Operators @@ -31,8 +31,8 @@ x : `shared Array $ (1; 2; 3) ### Example sharing data between two shared objects ```text -x : `shared 1 -y : `shared 0 +x : %shared 1 +y : %shared 0 z : ^ x {[x] x } ^ y {[y] y : z } |
