-
Notifications
You must be signed in to change notification settings - Fork 0
Modules inside functions!
Julius Paffrath edited this page Dec 1, 2016
·
2 revisions
jask supports besides Inside Function Defines another very cool feature called inside modules. This allows you to import a module inside a function! See the following code:
function myFunction()
use jcore/jnumber
print(PI())
end
The imported module jcore lives only inside myFunction and can't be used outside.
- 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