HomeIndex

Dinky Variables

Variables are typeless and have the type of the value they hold. Type conversion will generally happen when needed but can result in errors if you add a int to a table.
global_var <- 10
If a variable is declared at the root of a .dinky file (outside of any functions) is will be a global variable accessible anywhere in the code.
local var = 10
local variables declared at the root of a .dinky file will be local to that file and any functions in it.