From f66874f1f5066e57ef5761cd7c87b5d498fd89b6 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 2 Sep 2022 12:57:29 +0100 Subject: Private variables --- language.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'language.md') 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: -- cgit v1.2.3