LS2CodeBoxValue

From ismods.com: dedicated to promoting white hat, EULA-compliant Inner Space and LavishScript mods
Jump to: navigation, search

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