Update page 'P# 1.0 Draft Specification'
@@ -72,7 +72,9 @@ A constant is an identifier for a value which cannot change during the execution
|
||||
|
||||
## 4. Basic concept
|
||||
### 4.1. Script startup
|
||||
TODO
|
||||
P# is an interpreted language, thus a program or script does not have to be compiled as an application that may be started. An interpreted program shall contain exactly one method qualifying as an entry point by satisfying the following requirements:
|
||||
It has to be a constructor of class named *Main*
|
||||
|
||||
|
||||
### 4.2. Script termination
|
||||
If the return type of the script's entry point method is int, the value returned serves as the scripts's termination status code. The purpose of this code is to allow communication of success or failure to the execution environment. If the return type of the entry point method is void, reaching the right brace (}) that terminates that method, or executing a return statement that has no expression, results in a termination status code of 0.
|
||||
|
||||
Reference in New Issue
Block a user