Bungee Logic : Site : Data

Page Status: Beta

Back to Sites

Contents

[edit] Purpose

A Data site enables the use of literal data. The type is inferred from the value (e.g. 42 is considered type int32, and 'Foo' is considered type string).

[edit] How to Use

Consider the following code snippet:
public function foo()
{
     var int32 x = 42;
     var double y;
     y = 3.1415926;
}
Function foo defines two variables: x and y.
x is initialized using a Data site that specifies the literal value 42.
y is assigned using a Data site that specifies the literal value 3.1415926.

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.