Is
From Free Pascal wiki
Jump to navigationJump to search
│
Deutsch (de) │
English (en) │
suomi (fi) │
The reserved word is appears as:
- an operator symbol in object-oriented programming, or as a
- a modifier qualifying routine variable (
is nested).
Operator
The operator is tests, whether an object (first operand) is an instance of a class or its children.
fruit is citrusFruit
is equivalent to
fruit.inheritsFrom(citrusFruit)
.
The expression is true if and only if fruit descends from citrusFruit.
Modifier
If {$modeSwitch nestedProcVars+} or {$mode ISO} routine variables declared with the modifier is nested allows those to be assigned to nested routines.
Otherwise only global routines' addresses can be assigned to routine variables.