libperun

Class std.rt.System

Synopsis

public static class System

A static class containing routines which allow interaction with the system.

Fields

public static final String ENDLINE

A string which marks line breaks on the host platform.

public static final String PATH_SEPARATOR

A string which separates the components of a path.

public static final String EXE_SUFFIX

The executable suffix on the host platform. For example, this is the empty string on POSIX, and ".exe" on Windows.

public static final String LIB_SUFFIX

The library suffix on the host platform. For example, this is ".dll" on Windows, or ".so" on POSIX.

public static final String[] args

Command-line arguments passed to the program. The first argument is the program name itself.

public static final Map< String, String > environ

Environment variables.

public static final InputStream stdin

Standard input stream.

public static final OutputStream stdout

Standard output stream.

public static final OutputStream stderr

Standard error output stream.

public static final byte_t MAX_BYTE

Maximum value that can be stored in a byte_t.

public static final byte_t MIN_BYTE

Minimum value that can be stored in a byte_t.

public static final sbyte_t MAX_SBYTE

Maximum value that can be stored in a sbyte_t.

public static final sbyte_t MIN_SBYTE

Minimum value that can be stored in a sbyte_t.

public static final word_t MAX_WORD

Maximum value that can be stored in a word_t.

public static final word_t MIN_WORD

Minimum value that can be stored in a word_t.

public static final sword_t MAX_SWORD

Maximum value that can be stored in a sword_t.

public static final sword_t MIN_SWORD

Minimum value that can be stored in a sword_t.

public static final dword_t MAX_DWORD

Maximum value that can be stored in a dword_t.

public static final dword_t MIN_DWORD

Minimum value that can be stored in a dword_t.

public static final sdword_t MAX_SDWORD

Maximum value that can be stored in a sdword_t.

public static final int MAX_INT

No description given

public static final sdword_t MIN_SDWORD

Minimum value that can be stored in a sdword_t.

public static final int MIN_INT

No description given

public static final qword_t MAX_QWORD

Maximum value that can be stored in a qword_t.

public static final qword_t MIN_QWORD

Minimum value that can be stored in a qword_t.

public static final sqword_t MAX_SQWORD

Maximum value that can be stored in a sqword_t.

public static final long MAX_LONG

No description given

public static final sqword_t MIN_SQWORD

Minimum value that can be stored in a sqword_t.

public static final long MIN_LONG

No description given

Constructors

Methods

public static void exit();

Exit the program with a success status.

public static void exit(int status);

Exit the program with the specified status. A value of 0 indicates the program eneded successfully; any other value indicates an error. Note that only values in the 0-127 range are guaranteed to work correctly on all systems.

public static void assert(bool cond,String msg);

Throw std.rt.AssertionError if cond is not true.

Arguments
`cond`The condition to check for.
`msg`The error message to be associated with the AssertionError.
public static void assert(bool cond);

Throw std.rt.AssertionError if cond is not true.