Difference between revisions of "LavishScript:Object Types"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
* [[DataType:float|float]] | * [[DataType:float|float]] | ||
* [[DataType:int|int]] | * [[DataType:int|int]] | ||
+ | * [[DataType:uint|uint]] | ||
+ | * [[DataType:int64|int64]] | ||
==== Boolean (TRUE/FALSE) ==== | ==== Boolean (TRUE/FALSE) ==== | ||
* [[DataType:bool|bool]] | * [[DataType:bool|bool]] | ||
Line 28: | Line 30: | ||
* [[DataType:floatptr|floatptr]] | * [[DataType:floatptr|floatptr]] | ||
* [[DataType:intptr|intptr]] | * [[DataType:intptr|intptr]] | ||
+ | * [[DataType:uintptr|uintptr]] | ||
+ | * [[DataType:int64ptr|int64ptr]] | ||
* [[DataType:rgbptr|rgbptr]] | * [[DataType:rgbptr|rgbptr]] | ||
* [[DataType:stringptr|stringptr]] | * [[DataType:stringptr|stringptr]] | ||
Line 38: | Line 42: | ||
* [[DataType:rgb|rgb]] | * [[DataType:rgb|rgb]] | ||
* [[DataType:script|script]] | * [[DataType:script|script]] | ||
+ | * [[DataType:buffer|buffer]] | ||
+ | === File Handling === | ||
+ | * [[DataType:filepath|filepath]] | ||
+ | * [[DataType:file|file]] | ||
=== Utilities === | === Utilities === |
Revision as of 22:08, 28 August 2005
Contents
Terms
- Member
- A member in the LavishScript context means a value associated with the datatype, referred to by a specific term. Members are accessed with a .
- Method
- A method in the LavishScript context means a function or action associated with the datatype, referred to by a specific term. Methods are accessed with a :
- Index
- An index in the LavishScript context means a value or set of values that, when used with a member or method, indicates parameters such as coordinates to be used in retrieving a value or taking an action. Indices are surrounded with [ ], and separated by a ,
- Inherit
- If a datatype inherits another, members and methods of the inherited datatype can be used as if they were of the original datatype, if not defined by the original datatype.
Introduction
Data Types are the complement to Top-Level Objects (TLOs). Where a TLO is a specific object, a data type describes a type of object. For example, "table" would be a data type, but "my dining table" would be an object. Everything said about "my dining table" can generally be said about every other table. Thus, a data type is a generalized way of describing many objects. Using this generalization makes it relatively easy to work with a large number of objects, because they are all described in the same way, and that's the idea behind data types.