Note: information on this page refers to Ceylon 1.0, not to the current release.
=== (identical) operator
The non-associating, binary infix === operator is used to test whether its operands
are identical
Usage
void m(Identifiable x, Identifiable y) {
Boolean identical = x === y;
}
Description
Definition
The === operator is primitive.
Polymorphism
The === operator is not polymorphic.
Type
The result type of the === operator is Boolean.
Meaning of identical for built-in types
TODO
See also
-
==(equal) operator - API documentation for
Identifiable - identical in the language specification
- operator precedence in the language specification
- Operator polymorphism in the Tour of Ceylon