-
Notifications
You must be signed in to change notification settings - Fork 0
Structs in jask
Julius Paffrath edited this page Jan 29, 2019
·
1 revision
Jask masters structs, a data type very similar to structs in the C programming language:
struct myStruct
store 10 in num
store "Text" in str
endstruct
Structs offer the possibility to declare several variables in groups.
Variables stored in a struct are called struct members. To access them, use the struct operator:
printLine(myStruct->num)
assign "Another text" to myStruct->str
- Home
- Getting started
- Control flow
- Functions
- List variables in jask
- Dictionary variables in jask
- Structs in jask
- Convert variables
- Internal Functions
- The access operator
- Callbacks in jask
- Modules
- Internal Modules
- The jask standard library jcore
- Using CMD arguments in jask
- Nested function calls
- Functions inside functions!
- Modules inside functions!
- Performance comparison of loops