Update page 'Aer v1.0 Specification'

2018-08-16 16:41:04 +02:00
parent d7d282d6ca
commit 7c22b9c86f

@@ -121,11 +121,13 @@ In above example, the $age variable is replaced with the value 20 in the string
### 4.8. Including Files
Aer code can be split in multiple files for bigger scripts. There are two statements in Aer, which allows to join various Aer files:
* include
* require
* include()
* require()
The include() function includes and evaluates the specified file during the execution of the script. Files are included based on the file path given or, if none is given the include_path specified. If the file isn't found in the include_path include() will finally check in the calling script's own directory and the current working directory before failing. The include() construct will emit a warning if it cannot find a file.
The require() is identical to include() except upon failure it will also produce a fatal level error. In other words, it will halt the script whereas include() only emits a warning which allowsthe script to continue.
Both of above listed builtin functions can be used only from methods.
## 5. Data Types & Pseudo Types