System defines things that represents the currently running system, such as the load path.

Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
currentDebugger = nil
err = IO_0x26B31B77
in = IO_0x38D0357A
kind = "System"
out = IO_0x6D66F9B9
programArguments = ["-S"]
Active cells (details)
atExit([code])

adds a new piece of code that should be executed on exit

currentDirectory()

returns the current directory that the code is executing in

currentFile()

returns the current file executing

currentWorkingDirectory()

returns the current working directory

exit(other 1)

forcibly exits the currently running interpreter. takes one optional argument that defaults to 1 - which is the value to return from the process, if the process is exited.

feature?(feature)

takes one text or symbol argument and returns a boolean indicating whether the named feature is available on this runtime.

hostName()

returns the host name of the local machine

ifMain([code])

returns result of evaluating first argument

loadPath()

returns the current load path

lowLevelLoad!(module, forceReload)

takes one evaluated string argument and a boolean of whether loading should be forced or not. will import the file corresponding to the string based on the Ioke loading behavior

notice()

returns a short text description of the receiver, the text System if this is the main System object, otherwise falls back to the super implementation

method(
  if(cell(:self) ==(System), 
    "System", 
    super))
randomNumber()

returns a random number

windows?()

returns true if running on windows, otherwise false