- This keyword is used to replace an existing set of keywords with one keyword.
Example:
typedef{double}decimal
new[decimal]typedeftest=123.4234
console.println.log("{typedeftest}")Output:
123.4234
- You can also create a type definition within a namespace.
namespace mytestnamespace
{
typedef{int.short}shortint
}
new[mytestnamespace::shortint]myvar=0