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
(Created page with "The LavishScript 2 standard environment currently defines the following Types... * LS2:Array (Type) * LS2:Binary (Type) * LS2:Decimal (Type) * [[LS2:Except...")
 
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
[[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 ==
 
The [[LavishScript 2]] standard environment currently defines the following Types...  
 
The [[LavishScript 2]] standard environment currently defines the following Types...  
* [[LS2:Array (Type)|Array]]
+
=== System namespace ===
* [[LS2:Binary (Type)|Binary]]
+
* [[LS2:System.Array (Type)|Array]] - a 0-based index of values
* [[LS2:Decimal (Type)|Decimal]]
+
* [[LS2:System.Byte (Type)|Byte]] - an unsigned 8-bit integer value
* [[LS2:Exception (Type)|Exception]]
+
* [[LS2:System.Boolean (Type)|Boolean]] - a true or false value
* [[LS2:Function (Type)|Function]]
+
* [[LS2:System.Char (Type)|Char]] - a UTF-16 character
* [[LS2:Integer (Type)|Integer]]
+
* [[LS2:System.Decimal (Type)|Decimal]] - a 64-bit floating point value
* [[LS2:LS2.Module (Type)|LS2.Module]]
+
* [[LS2:System.Enum (Type)|Enum]] - an integer value from an enmeration
* [[LS2:Math (Type)|Math]]
+
* [[LS2:System.Exception (Type)|Exception]] - an exception (error indicator)
* [[LS2:Method (Type)|Method]]
+
* [[LS2:System.IDisposable (Type)|Collections.IDisposable]] -
* [[LS2:Null (Type)|Null]]
+
* [[LS2:System.Int16 (Type)|Int16]] - a signed 16-bit integer value
* [[LS2:Property (Type)|Property]]
+
* [[LS2:System.Int32 (Type)|Int32]] - a signed 32-bit integer value
* [[LS2:Reference (Type)|Reference]]
+
* [[LS2:System.Int64 (Type)|Int64]] - a signed 64-bit integer value
* [[LS2:StaticMethod (Type)|StaticMethod]]
+
* [[LS2:System.Math (Type)|Math]] - math functions
* [[LS2:StaticProperty (Type)|StaticProperty]]
+
* [[LS2:System.SByte (Type)|SByte]] - a signed 8-bit integer value
* [[LS2:String (Type)|String]]
+
* [[LS2:System.String (Type)|String]] - a string of UTF-16 text
* [[LS2:Table (Type)|Table]]
+
* [[LS2:System.UInt16 (Type)|UInt16]] - an unsigned 16-bit integer value
* [[LS2:Type (Type)|Type]]
+
* [[LS2:System.UInt32 (Type)|UInt32]] - an unsigned 32-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 ===
 +
* [[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.InputDeclaration (Type)|InputDeclaration]] -
 +
* [[LS2:LavishScript2.Module (Type)|Module]] - a [[LS2:Module|module]]
 +
* [[LS2:LavishScript2.Method (Type)|Method]] - a method
 +
* [[LS2:LavishScript2.Null (Type)|Null]] - Null. It means nothing; the absence of something.
 +
* [[LS2:LavishScript2.Property (Type)|Property]] - a property
 +
* [[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.StaticProperty (Type)|StaticProperty]] -
 +
* [[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]]
  
 
== See Also ==
 
== See Also ==
 
* [[LS2IL]]
 
* [[LS2IL]]
 
* [[LS2:Instruction Reference|Instruction Reference]]
 
* [[LS2:Instruction Reference|Instruction Reference]]
 +
 +
[[Category:LavishScript 2]]
 +
[[Category:LS2IL]]

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