Jump to content

Ada Programming/Attributes/'Old

From Wikibooks, open books for an open world

Description

[edit | edit source]

The value of X on entry, has same type as X.

Each X'Old in a postcondition expression that is enabled, other than those that occur in subexpressions that are determined to be unevaluated, denotes a constant that is implicitly declared at the beginning of the subprogram body, entry body, or accept statement.

Example

[edit | edit source]
XOld return T