Chapter 1. Introduction

Table of Contents

1.1. Introduction of Slang
1.2. Example Programs

1.1. Introduction of Slang

The Slang® programming language is a general-purpose, object-oriented language. It is designed to be simple enough that many programmers can achieve fluency in the language. The Slang programming language is related to Java and C++.

The Slang programming language is strongly and statically typed. This specification clearly distinguishes between the compile-time errors that can and must be detected at compile time, and those that occur at run time. Compile time normally consists of translating programs into a machine-independent byte code representation. Run-time activities include loading and linking of the classes needed to execute a program, optional machine code generation and dynamic optimization of the program, and actual program execution.

The Slang programming language is a relatively high-level language, in that details of the machine representation are not available through the language. It includes automatic storage management, to avoid the safety problems of explicit deallocation (as in C++'s delete). The language does not include a garbage collection.

1.2. Example Programs

Most of the example programs given in the text are ready to be executed and are similar in form to:

public void Main(int argc, string args) modify {
   print("Hello World");
}