Bungee Logic : Site : Path
Contents |
Purpose
Sets or returns data for class member fields or function parameters.
If on a control, the Path property is the primary binding for the control's behavior (such as a function for a Button control).
How to Use
Uses a path notation for resolution. For example, consider the following assignment:
var int32 x = foo.bar.y;
The path for the source (right-hand side) is a Path site. In this case, the path indicates that the value comes from y, which is a member of bar, which is in turn a member of foo. foo is a member of the containing class.
A Path site is also used to retrieve the value of a parameter. Consider the following code snippet:
public foo([in] int32 x) { var int32 y = foo.x; }
The source for the assignment (right-hand side) is a Path site. In this case, it indicates that the value is provided by parameter x, which is an inbound parameter on function foo.
A Path site is also used to return values from a function. Consider the following code snippet:
public function foo([out] double x) { foo.x = 3.1415926; }
The target for the assignment (left-hand side) is a Path site. In this case, it indicates that the value 3.1415926 is to be assigned to parameter x, which is an outbound parameter on function foo.