Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 438 Bytes

File metadata and controls

31 lines (21 loc) · 438 Bytes

typedef

  • 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

typedefs inside namespaces

  • You can also create a type definition within a namespace.
namespace mytestnamespace
{
	typedef{int.short}shortint
}

new[mytestnamespace::shortint]myvar=0