aboutsummaryrefslogtreecommitdiff
path: root/language.md
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-02 12:57:29 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-02 12:57:29 +0100
commitf66874f1f5066e57ef5761cd7c87b5d498fd89b6 (patch)
tree0edef26cda608a79c92f9c64c847f214ba877f9c /language.md
parenta5633563e9bb579ed10cb7d6d43676485c13b1fb (diff)
downloadmicro-lang-hs-f66874f1f5066e57ef5761cd7c87b5d498fd89b6.tar.gz
micro-lang-hs-f66874f1f5066e57ef5761cd7c87b5d498fd89b6.zip
Private variables
Diffstat (limited to 'language.md')
-rw-r--r--language.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/language.md b/language.md
index 9adb6f6..2440cc7 100644
--- a/language.md
+++ b/language.md
@@ -74,6 +74,11 @@ p; # whatever byte is in address 0x8000 (peek)
p = 0; # byte at 0x8000 is now 0 (poke)
```
+Variables are exported by default, unless they are defined as private:
+```
+private val local: u8 = 123;
+```
+
### Constants
Constant are immutable values and may not have memory allocated to them: