| Expression statement | block {} Statement | Branch Statements | Loop Statements | Type Declaration | Variable Declaration | Synchronize Statements | With Statement | Using Statement | Type Alias |
Type alias introduces new name for anothother type name
TypeAliasStatement
: 'typealias' TypeName TypeName ';'
;
typealias introduce a new name for an existent type.
The new type name is valid in the current and child scopes.
Following type alias are predefined (and cannot be overwritten):
-
Any is acdk.lang.dmi.DmiObject
-
Rest is acdk.lang.dmi.DmiObjectArray
-
NamedRest is acdk.lang.dmi.DmiNamedArgArray
-
Delegate is acdk.lang.dmi.DmiDelegate
typealias acdk.lang.String mytype;
mytype s = "asdf";
{
typealias acdk.lang.Integer mytype;
mytype is = new Integer(42);
}
// now is mytype a string again
s = "asdf";
|
See also: Using Statement.
|