The Docs
Data, but in Types
In OSPL, there are types. These types hold data and the data goes in the types.
There are more data types in OSPL (17!) than I have fingers.
Here are some types that hold data: (Capital ones are signed, not the capital of Canada is Ottawa is not signed)
- byte
- BYTE
- word
- WORD
- dword
- DWORD
- qword
- QWORD
- half
- single
- float
- bool
- str
- tuple
- mix
- obj
- ref
What do these types even do anyways
byte
Its from 0 to 255 and its a number with no periods
BYTE
Its byte but its signed, so -128 to 127 is the range
word
You can uuuuuuuhhhhhh
Look up x86 thingy data types and learn them im not doing this for the next like 10 minutes
WORD
DO I HAVE TOOOOOO uuuuuuuhhhhhh
Todo: artemis do it for me im lazy
half
its a 16 bit floating point number
BIG NERD WARNING
halves are not actually 16 bits! rust does not have stable 16 bits so we cant do it lol until its not nightly honk shoo honk shoo
single
me irl
float
double
bool
john boolean he is true or false
str
i dont actually know how these work but they can make sentences and stuff
tuple
its literally a list and its actually mut
mix
full article: mixes
obj
idk
ref
its like a pointer but its better