Keywords
Keywords are reserved identifiers that have special meanings to the compiler. They can't be used as identifiers in your program
this article lists keywords.
Built-in Types
All keywords that can be used as a type.
Keyword | short Description |
---|---|
int | an alias to int32 |
byte | an alias to uint8 |
bool | the true or false type |
uintptr | a unsigned int thats the size of a pointer. |
sintptr | a signed int thats the size of a pointer. |
float | An 32 bit floating point number. |
float32 | An 32 bit floating point number. |
float64 | An 64 bit floating point number. |
char | an ASCII character type. |
utf8 | an utf8 character type. |
utf16 | an utf16 character type. |
utf32 | an utf32 character type. |
uint8 | an one byte unsigned int. |
uint16 | an two byte unsigned int. |
uint32 | an four byte unsigned int. |
uint64 | an eight bytes unsigned int. |
int8 | an one byte signed int. |
int16 | an two byte signed int. |
int32 | an four byte signed int. |
int64 | an eight bytes signed int. |
typeinfo | represents compile type information. |
type keywords
All keywords that can be used to make a type.
Keyword | short Description |
---|---|
enum | a group of constants |
trait | shareing behavior between types |
tag | add information about functions and classes |
dynamic | dynamically dispatched traits |
functor | Funcion Pointer/Lambda Object |
memory keyword
All keywords that can that deals with memory.
Keyword | short Description |
---|---|
new | allocate memory |
drop | free memory. |
unsafe | lets you do unsafe operations. |
bitcast | reinterpret the bytes of a type. |
shr | make a shared pointer. |
unq | make a unique pointer. |
varable types keywords
All keywords that can that deals changes how a varable works.
Keyword | short Description |
---|---|
static | global variables |
thread | global variables but one per thread. |
eval | compile time constant expression. |
Compile Time Keywords
All keywords that can that lets you do stuff at compile time.
Keyword | short Description |
---|---|
compiler | read compiler settings |
invaild | throw a compile time error |
type | get TypeInfo from an Type |
typeof | get TypeInfo from an expression |
bind | use TypeInfo as a type. |
valid | check a statement has errors. |
miscellaneous keywords
All keywords that dont fit in the other categories.