Iron Realms Entertainment
Rapture has three built in data types currently (ignoring the types in databases). These types are used when declaring variables, passing parameters, and generally pushing data around to do some useful work. Each type can be identified by a designating trailing character (or lack thereof) on any variable or function or parameter names. For instance:
local string$; (* A local string variable *)
As you can see, the trailing character indicates the type, unless there is no such special character, in which case the type is assumed to be an integer. A breakdown of the special characters and their corresponding type information follows.
Let’s see a simple example of each.
local int; (* An integer local variable *)
Each type has different operations defined for it, see Operators for more information.