Developer   API   Core & System   Global

  •  Config(0)
  •  Properties(1)
  •  Methods(10)
  •  Events(1)

Global(native)

Following functions and variables that "live" in global namespace so they accessible in script without any namespace designator

Example

var r = eval( " 348.0 / 23.7 " ); console << r << "\n";

Properties

  • console : Stream
    Standard input/output stream. Intended to use for debugging purposes.

Methods

  • crackUrl(url) : Object
    Parses the url string.
  • eval(input[, env]) : Object
    Evaluates (interprets) input and returns its value. If input is a string then function tries to interpret it as if it contains script source code. If input is a stream object then it compiles and executes source code from it.
  • fetch(file) : Object
    Restores value previously written into the file (filename) or stream by function store.
  • gc()
    Invokes garbage collector.
  • hash(value) : Integer
    Hash value of its argument.
  • membersOf(obj) : Object
    Creates map (simple object) that has the same set of properties as the obj.
  • parseData(input) : Object
    JSON++ data parser.Evaluates (interprets) data literal at the input and returns its value. Input shall contain valid data literal expression otherwise parsing exception will be thrown.
  • rand(maxNumber) : Integer
    Generate a random number between 0 and maxNumber-1.
  • store(file, value) : Boolean
    Stores the value into file filename or stream in binary form.
  • symbol(string) : Symbol
    Function returns symbol of the string.

Events

  • onError(exp)
    Handle application errors
API Navigation
Skip Navigation Links.
Expand <span>User Interface</span> User Interface
Collapse <span>Core & System</span> Core & System
System
Object
Integer
Float
String
Date
Math
Array
RegExp
Global
Function
Timer
Expand <span>Graphics</span> Graphics
Expand <span>Files and Databases</span> Files and Databases
Expand <span>Crypto</span> Crypto
Expand <span>Native User Interface</span> Native User Interface
Expand <span>Net</span> Net
Expand <span>Media</span> Media
Expand <span>Sensor</span> Sensor
Expand <span>Game Development</span> Game Development