sys: Alore system information
This module provides basic information related to the Alore virtual machine and its environment.
Constants
- Args
- Command line arguments given to current program as a string array.
These do not include the path to the current program. Consider this
example:
$ alore program.alo arg1 arg2
Now the value of sys::Args in program.alo would be ["arg1", "arg2"]. - ProgramPath
- Path to current program. It can be a relative or an absolute path, and it can refer to an Alore source file or a compiled binary executable file.
- InterpreterPath
- Path to the Alore interpreter. It can be a relative or an absolute path. Multiple versions of the Alore interpreter may be installed at the same time, and the path always refers to the one that is running the current program. This constant is nil if IsStandalone is True.
- Platform
- String identifying the current platform, in lower case. Currently supported values are "windows" (for all desktop and server variants of Microsoft Windows), "linux" (for all variants of Linux), "osx" (for Mac OS X), "solaris" (for all variants of Solaris) and "freebsd" (for FreeBSD). Additional values will be defined as the Alore runtime is ported to new operating systems.
- IsStandalone
- Boolean indicating whether the current program is a standalore executable (compiled binary file instead of an Alore source file).