GoCode Variables and Types - Owen2k6/GoOS GitHub Wiki
GoCode keeps several dictionaries:
-
Strings:
Dictionary<string,string>
-
Integers:
Dictionary<string,int>
-
Booleans:
Dictionary<string,bool>
-
Windows:
Dictionary<string,Window>
(for UI references) -
ButtonActions:
Dictionary<string,int>
(buttonName → target line)
string name = value
string=name=value
- Stored literally. No automatic quoting or escaping is applied by the interpreter—use the exact text you want.
int score = 42
int=score=42
- Parsed with
int.Parse
. Invalid numbers log an error to the console.
bool=name=true
bool=flag=false
- Stored as true/false. Currently used mainly for future logic; comparisons in
if=
are string or integer based.