Bungee Logic : Site : Var

From $1

Table of contents
  1. 1. Purpose
  2. 2. How to Use

Back to Sites

Purpose

Sets or returns data for variables defined within the local scope within Bungee Logic.

How to Use

Consider the following code snippet:
public function foo([in] int32 x)
{
     var double y = 3.1415926;
     var double x;
     x = y;
}
There are two variables defined within the scope of function foo: y (which is initialized to 3.1415926) and x.
For the assignment, both the source and target (left and right sides) are var sites.
It is important to note that the variable x in the assignment is not the same as parameter x.

Tags:
 
Images (0)
 
Comments (0)
You must login to post a comment.