Aztec® Programming Language
Version 1.1 Alpha 2

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

Download Aztec

Search        Contact Us

Read dozens of books...

About heroes and crooks...

And I learned much from both of their styles.

- Jimmy Buffet


The Aztec Language provides a rich set of methods to operate on all primitive data types. Each primitive data type has a set of instance methods and there is also a corresponding set of VM global methods with similar functionality and argument/parameter lists. In addition, there is a corresponding set of 'compiler' methods to operate on primitive data types during "compile-time logic". This section describes all three types of methods. For convenience when referring to these method types in this documentation, the "VM global methods" will sometimes be referred to as 'global'.


As mentioned in the Aztec Language Introduction, the primitive instance methods and the VM global methods are implemented internally as VM instructions, so their use is as efficient as if the language had provided a real operator instead of a method.


Primitive instance methods can be very useful, and in many cases modify the value of the primitive object. In some cases, that is not preferable, so the global method can be used instead of an instance method. The global method typically returns a primitive object with the desired effect but does not modify the contents of the source value. Having both options provides more flexibility to the programmer, and similar names and argument lists provide consistency.


The documentation for each method in the primitive framework will show the syntax and describe the usage for all three of these implementations - the instance method, the global method and the compiler method.


Note that constructors for primitive data types can only be used when dynamically creating primitive data items.


All compiler methods and global methods in the Aztec Primitive Framework are defined in the "aztec.system" space.

See Also


Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec