Aztec® Programming Language
Version 1.1 Alpha 2

Copyright © 2010-2017, Aztec Development Group, All Rights Reserved

Download Aztec

Search        Contact Us

Taking steps is easy...

Standing still is hard.

- Regina Spektor

 

In addition to the global methods documented in the Primitive Framework section, the Aztec system also provides several global methods to get references to the pertinent Script, Thread and Display objects.

 

These global methods are all defined in the "aztec.system" space.

Global Methods

GetScript() Returns a reference to the Script object
GetThread() Returns a reference to the Thread object currently executing
GetMainThread() Returns a reference to the main Thread object
GetDisplay() Returns a reference to the local Display object

See Also

 


GetScript()

public method<Script> GetScript()

Parameters

None

Return Value

Reference to the Script object

Description

This global method returns a reference to the one and only Script object which is associated with this executing program/script. The Script object is created automatically by the VM during startup, and is available everywhere using this method. The Thread class also provides a Script() method for the same purpose.

 

Global Method


GetThread()

public method<Thread> GetThread()

Parameters

None

Return Value

Reference to the current Aztec Thread

Description

This global method returns a reference to the currently executing Thread object. The Script class also provides a Thread() method for the same purpose.

 

Global Method


GetMainThread()

public method<Thread> GetMainThread()

Parameters

None

Return Value

Reference to the main Aztec Thread

Description

This global method returns a reference to the main Thread object. The Script class also provides a MainThread() method for the same purpose.

 

Global Method


GetDisplay()

public method<Display> GetDisplay()

Parameters

None

Return Value

Reference to local Display object

Description

This global method returns a reference to the Display object associated with the local screen. The Script class also provides a Display() method for the same purpose.

 

Global Method

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec