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 3: Line 3:
 
== Built-in Types ==
 
== 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]] - a 0-based index of values
+
=== System namespace ===
* [[LS2:Binary (Type)|Binary]] - an arbitrary binary value
+
* [[LS2:System.Array (Type)|Array]] - a 0-based index of values
* [[LS2:Decimal (Type)|Decimal]] - a 64-bit floating point value
+
* [[LS2:System.Byte (Type)|Byte]] - an unsigned 8-bit integer value
* [[LS2:Exception (Type)|Exception]] - an exception (error indicator)
+
* [[LS2:System.Decimal (Type)|Decimal]] - a 64-bit floating point value
* [[LS2:Function (Type)|Function]] - a function that is part of a [[LS2:Script|script]]
+
* [[LS2:System.Exception (Type)|Exception]] - an exception (error indicator)
* [[LS2:Integer (Type)|Integer]] - a 64-bit integer value
+
* [[LS2:System.Int16 (Type)|Int16]] - a signed 16-bit integer value
* [[LS2:LS2.Module (Type)|LS2.Module]] - a [[LS2:Module|module]]
+
* [[LS2:System.Int32 (Type)|Int32]] - a signed 32-bit integer value
* [[LS2:Math (Type)|Math]] - math functions
+
* [[LS2:System.Int64 (Type)|Int64]] - a signed 64-bit integer value
* [[LS2:Method (Type)|Method]] - a method
+
* [[LS2:System.Math (Type)|Math]] - math functions
* [[LS2:Null (Type)|Null]] - Null. It means nothing; the absence of something.
+
* [[LS2:System.SByte (Type)|SByte]] - a signed 8-bit integer value
* [[LS2:Property (Type)|Property]] - a property
+
* [[LS2:System.String (Type)|String]] - a string of text
* [[LS2:Reference (Type)|Reference]] - an arbitrary reference to another value, i.e. a box
+
* [[LS2:System.UInt16 (Type)|UInt16]] - an unsigned 16-bit integer value
* [[LS2:StaticMethod (Type)|StaticMethod]] -  
+
* [[LS2:System.UInt32 (Type)|UInt32]] - an unsigned 32-bit integer value
* [[LS2:StaticProperty (Type)|StaticProperty]] -  
+
* [[LS2:System.UInt64 (Type)|UInt64]] - an unsigned 64-bit integer value
* [[LS2:String (Type)|String]] - a string of text
+
 
* [[LS2:Table (Type)|Table]] - a string-keyed index of values
+
=== LavishScript2 namespace ===
* [[LS2:Type (Type)|Type]] - a [[LS2:Type|Type]]
+
* [[LS2:LavishScript2.Binary (Type)|Binary]] - an arbitrary binary value
 +
* [[LS2:LavishScript2.Function (Type)|Function]] - a function that is part of a [[LS2:Script|script]]
 +
* [[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.StaticMethod (Type)|StaticMethod]] -  
 +
* [[LS2:LavishScript2.StaticProperty (Type)|StaticProperty]] -  
 +
* [[LS2:LavishScript2.Table (Type)|Table]] - a string-keyed index of values
 +
* [[LS2:LavishScript2.Type (Type)|Type]] - a [[LS2:Type|Type]]
  
 
== See Also ==
 
== See Also ==

Revision as of 14:36, 21 October 2012

Types in LavishScript 2 can have methods and properties, both static and non-static.

Built-in Types

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

System namespace

  • Array - a 0-based index of values
  • Byte - an unsigned 8-bit integer value
  • Decimal - a 64-bit floating point value
  • Exception - an exception (error indicator)
  • Int16 - a signed 16-bit integer value
  • Int32 - a signed 32-bit integer value
  • Int64 - a signed 64-bit integer value
  • Math - math functions
  • SByte - a signed 8-bit integer value
  • String - a string of text
  • UInt16 - an unsigned 16-bit integer value
  • UInt32 - an unsigned 32-bit integer value
  • UInt64 - an unsigned 64-bit integer value

LavishScript2 namespace

See Also