Previous chapter To contents Next chapter

Chapter 5, Operators

To make it easier to write Pike, and to make the code somewhat shorter, some functions can be called with just one or two characters in the code. These functions are called operators and we have already seen how they work in plenty of examples. In this chapter I will describe in detail what they do. The operators are divided into categories depending on their function, but beware that some operators have meanings that go way beyond the scope of the category they are in.

5.1 Arithmetic operators

5.2 Comparison operators

5.3 Logical operators

5.4 Bitwise/set operators

5.5 Indexing

5.6 The assignment operators

5.7 The rest of the operators

5.8 Operator precedence

5.9 Operator functions

Previous chapter To contents Next chapter