Difference between revisions of "LS2:Type"

From ismods.com: dedicated to promoting white hat, EULA-compliant Inner Space and LavishScript mods
Jump to: navigation, search
 
Line 1: Line 1:
[[LS2:Type|Types]] in LavishScript 2 can have [[LS2:Method|methods]] and [[LS2:Property|properties]], both static and non-static.
+
[[LS2:Type|Types]] in LavishScript 2 can have [[LS2:Method|methods]], [[LS2:Property|properties]] and [[LS2:Field|fields]], both static and non-static. They may be derived from a single parent Type, and may implement any number of [[LS2:Interface|interfaces]].
  
 
== Built-in Types ==
 
== Built-in Types ==
Line 6: Line 6:
 
* [[LS2:System.Array (Type)|Array]] - a 0-based index of values
 
* [[LS2:System.Array (Type)|Array]] - a 0-based index of values
 
* [[LS2:System.Byte (Type)|Byte]] - an unsigned 8-bit integer value
 
* [[LS2:System.Byte (Type)|Byte]] - an unsigned 8-bit integer value
 +
* [[LS2:System.Boolean (Type)|Boolean]] - a true or false value
 +
* [[LS2:System.Char (Type)|Char]] - a UTF-16 character
 
* [[LS2:System.Decimal (Type)|Decimal]] - a 64-bit floating point value
 
* [[LS2:System.Decimal (Type)|Decimal]] - a 64-bit floating point value
 +
* [[LS2:System.Enum (Type)|Enum]] - an integer value from an enmeration
 
* [[LS2:System.Exception (Type)|Exception]] - an exception (error indicator)
 
* [[LS2:System.Exception (Type)|Exception]] - an exception (error indicator)
 +
* [[LS2:System.IDisposable (Type)|Collections.IDisposable]] -
 
* [[LS2:System.Int16 (Type)|Int16]] - a signed 16-bit integer value
 
* [[LS2:System.Int16 (Type)|Int16]] - a signed 16-bit integer value
 
* [[LS2:System.Int32 (Type)|Int32]] - a signed 32-bit integer value
 
* [[LS2:System.Int32 (Type)|Int32]] - a signed 32-bit integer value
Line 13: Line 17:
 
* [[LS2:System.Math (Type)|Math]] - math functions
 
* [[LS2:System.Math (Type)|Math]] - math functions
 
* [[LS2:System.SByte (Type)|SByte]] - a signed 8-bit integer value
 
* [[LS2:System.SByte (Type)|SByte]] - a signed 8-bit integer value
* [[LS2:System.String (Type)|String]] - a string of text
+
* [[LS2:System.String (Type)|String]] - a string of UTF-16 text
 
* [[LS2:System.UInt16 (Type)|UInt16]] - an unsigned 16-bit integer value
 
* [[LS2:System.UInt16 (Type)|UInt16]] - an unsigned 16-bit integer value
 
* [[LS2:System.UInt32 (Type)|UInt32]] - an unsigned 32-bit integer value
 
* [[LS2:System.UInt32 (Type)|UInt32]] - an unsigned 32-bit integer value
 
* [[LS2:System.UInt64 (Type)|UInt64]] - an unsigned 64-bit integer value
 
* [[LS2:System.UInt64 (Type)|UInt64]] - an unsigned 64-bit integer value
 +
* [[LS2:System.Collections.IEnumerable (Type)|Collections.IEnumerable]] -
 +
* [[LS2:System.Collections.IEnumerator (Type)|Collections.IEnumerator]] -
 +
* [[LS2:System.Collections.KeyValuePairs (Type)|Collections.KeyValuePairs]] -
  
 
=== LavishScript2 namespace ===
 
=== LavishScript2 namespace ===
 
* [[LS2:LavishScript2.Binary (Type)|Binary]] - an arbitrary binary value
 
* [[LS2:LavishScript2.Binary (Type)|Binary]] - an arbitrary binary value
 +
* [[LS2:LavishScript2.Field (Type)|Field]] - a field
 
* [[LS2:LavishScript2.Function (Type)|Function]] - a function that is part of a [[LS2:Script|script]]
 
* [[LS2:LavishScript2.Function (Type)|Function]] - a function that is part of a [[LS2:Script|script]]
 +
* [[LS2:LavishScript2.InputDeclaration (Type)|InputDeclaration]] -
 
* [[LS2:LavishScript2.Module (Type)|Module]] - a [[LS2:Module|module]]
 
* [[LS2:LavishScript2.Module (Type)|Module]] - a [[LS2:Module|module]]
 
* [[LS2:LavishScript2.Method (Type)|Method]] - a method
 
* [[LS2:LavishScript2.Method (Type)|Method]] - a method
Line 26: Line 35:
 
* [[LS2:LavishScript2.Property (Type)|Property]] - a property
 
* [[LS2:LavishScript2.Property (Type)|Property]] - a property
 
* [[LS2:LavishScript2.Reference (Type)|Reference]] - an arbitrary reference to another value, i.e. a box
 
* [[LS2:LavishScript2.Reference (Type)|Reference]] - an arbitrary reference to another value, i.e. a box
 +
* [[LS2:LavishScript2.StaticField (Type)|StaticField]] -
 
* [[LS2:LavishScript2.StaticMethod (Type)|StaticMethod]] -  
 
* [[LS2:LavishScript2.StaticMethod (Type)|StaticMethod]] -  
 
* [[LS2:LavishScript2.StaticProperty (Type)|StaticProperty]] -  
 
* [[LS2:LavishScript2.StaticProperty (Type)|StaticProperty]] -  
 
* [[LS2:LavishScript2.Table (Type)|Table]] - a string-keyed index of values
 
* [[LS2:LavishScript2.Table (Type)|Table]] - a string-keyed index of values
 +
* [[LS2:LavishScript2.Thread (Type)|Thread]] - a [[LS2:Thread|Thread]]
 
* [[LS2:LavishScript2.Type (Type)|Type]] - a [[LS2:Type|Type]]
 
* [[LS2:LavishScript2.Type (Type)|Type]] - a [[LS2:Type|Type]]
  

Latest revision as of 21:45, 24 November 2012

Types in LavishScript 2 can have methods, properties and fields, both static and non-static. They may be derived from a single parent Type, and may implement any number of interfaces.

Built-in Types

The LavishScript 2 standard environment currently defines the following Types...

System namespace

LavishScript2 namespace

See Also