User Tools

Site Tools


en:code:core:global

Global

These functions are global and can be called without object.

Functions

include

Reads and evaluates a local file at filename.

Syntax

include(filename);

Arguments

  1. filename - (string) the file to include

Returns

  • (mixed) the evaluation result

Exceptions

  • (IncludeFileError) the file cannot be read

Example

include("otherScript.acod"); //Read and evaluate a script named "otherScript.acod".

Notes

Auto-inclusion (or circular inclusion) will lead to an infinite loop.

Enumerations

Encoding

Encoding represents a string encoding.

Values

  1. Native: native encoding
  2. Ascii: ascii encoding
  3. Latin1: latin1 encoding
  4. UTF8: utf-8 encoding
en/code/core/global.txt · Last modified: 2016/10/09 11:10 (external edit)