Difference between revisions of "LS2CodeBoxValue"

From ismods.com: dedicated to promoting white hat, EULA-compliant Inner Space and LavishScript mods
Jump to: navigation, search
(Created page with "A LS2CodeBoxValue provides generic methods of accessing a particular unspecified ''value''. Arithmetic, logic, bitwise operations, and basic type conversions may be suppor...")
 
 
Line 1: Line 1:
 
A [[LS2CodeBoxValue]] provides generic methods of accessing a particular unspecified ''value''. Arithmetic, logic, bitwise operations, and basic type conversions may be supported by any value type.
 
A [[LS2CodeBoxValue]] provides generic methods of accessing a particular unspecified ''value''. Arithmetic, logic, bitwise operations, and basic type conversions may be supported by any value type.
  
LS2CodeBoxValue is an abstract class, meant to be subclassed to provide storage and implementation for any type of value.  
+
LS2CodeBoxValue is an abstract class, meant to be subclassed to provide storage and implementation for any type of value. LS2CodeBoxValue is also [[LS2Module:Reference counting|reference counted]]. These features make it easy to build rich, complex data types that are pleasing to use.
  
The [[LavishScript|LavishScript 1]] equivalent of LS2CodeBoxValue is [[LSOBJECT]]. By contrast, a LSOBJECT is never subclassed, only stores 32-bit values, and is not reference counted.
+
The [[LavishScript|LavishScript 1]] equivalent of LS2CodeBoxValue is [[LSOBJECT]]. In contrast to LS2CodeBoxValue, a LSOBJECT is never subclassed, only stores 32-bit values, and is not reference counted.
  
 
LS2CodeBoxValue is defined in [[LS2CodeBoxValue.h]]
 
LS2CodeBoxValue is defined in [[LS2CodeBoxValue.h]]

Latest revision as of 13:55, 25 November 2012

A LS2CodeBoxValue provides generic methods of accessing a particular unspecified value. Arithmetic, logic, bitwise operations, and basic type conversions may be supported by any value type.

LS2CodeBoxValue is an abstract class, meant to be subclassed to provide storage and implementation for any type of value. LS2CodeBoxValue is also reference counted. These features make it easy to build rich, complex data types that are pleasing to use.

The LavishScript 1 equivalent of LS2CodeBoxValue is LSOBJECT. In contrast to LS2CodeBoxValue, a LSOBJECT is never subclassed, only stores 32-bit values, and is not reference counted.

LS2CodeBoxValue is defined in LS2CodeBoxValue.h