paxC Miscellaneous Operators

Language Element Short Description
& Operator Returns delegate of function or alias of variable.
* Operator (unary) Returns alias of variable.
Comma Operator (,) Causes two expressions to be executed sequentially.
New Operator Creates a new object.
+ Operator (unary) Returns copy of array.

& Operator

Returns delegate of function or alias of variable.
result = & expr

Arguments

result
Any variable.
expr
Function or variable.

* Operator (unary)

Returns alias of variable.
result = * expr

Arguments

result
Any variable.
expr
Any expression.

Comma Operator (,)

Causes two expressions to be executed sequentially.
expression1, expression2

Arguments

expression1, expression2
Any expression.
The , operator causes the expressions on either side of it to be executed in left-to-right order, and obtains the value of the expression on the right.

New Operator

Creates a new object.
result = new constructor'(' [arguments] ')'

Arguments

result
Any variable
constructor
A class name
arguments
Optional. Any arguments to be passed to the new object's constructor.

Example

X = new Point(3, 5);

+ Operator (unary)

Returns copy of array.
result = + expr

Arguments

expr
Any expression


Copyright © 1999-2006 VIRT Laboratory. All rights reserved.