Gosu operators
Gosu uses standard programming operators to perform a wide variety of mathematical, logical, and object manipulation operations. If you are familiar with the C, C++ or Java programming languages, you might find that Gosu operators function similar to those other languages. Gosu evaluates operators within an expression or statement in order of precedence.
Gosu operators take either a single operand (unary operators), two operands (binary operators), or three operands (a ternary operator). The following list provides examples of each operator type:
Operator type |
Arguments |
Examples of this operator type |
|---|---|---|
unary |
1 |
|
binary |
2 |
|
ternary |
3 |
|
See also
