rdfs:comment
| - A data type
- A data type is a set of possible values from which an expression can take its value and the set of operators that can be used to represent these values. Examples of types are boolean, string, number, and Color3. The eight basic types in Lua are nil, boolean, number, string, function, userdata, thread, and table.
- Data Types are simply enough the types of data a variable or field in a database can store.
- A data type describes what kind of information (such as text) can be stored in a variable or returned by a function. This in turn affects what can be done with that information. NWScript is a statically typed language, meaning that the data type of each variable must be known when the variable is declared, and data types are for the most part not interchangeable. (The exception is that sometimes there is an implicit conversion between the two numeric types—floating point and integer.) string sMyString;
|
abstract
| - A data type
- A data type describes what kind of information (such as text) can be stored in a variable or returned by a function. This in turn affects what can be done with that information. NWScript is a statically typed language, meaning that the data type of each variable must be known when the variable is declared, and data types are for the most part not interchangeable. (The exception is that sometimes there is an implicit conversion between the two numeric types—floating point and integer.) The data type of a variable (or function) is specified as part of that variable's declaration, using a keyword before the variable name. For example, string sMyString; declares sMyString to be a variable of the "string" data type. The keywords recognized by NWScript are effect, float, int, itemproperty, location, object, string, and vector. In addition, there is a void keyword that cannot be used to declare a variable, but rather is used to declare a function as not returning data. Furthermore, the action keyword is used in (only) parameter declarations of commands to indicate a parameter that must be a function (or command) with a "void" return value.
- A data type is a set of possible values from which an expression can take its value and the set of operators that can be used to represent these values. Examples of types are boolean, string, number, and Color3. The eight basic types in Lua are nil, boolean, number, string, function, userdata, thread, and table.
- Data Types are simply enough the types of data a variable or field in a database can store.
|