Spec-Zone.ru › Ada 2005
Ada 2005 Reference Manual

6.7 Null Procedures

A null_procedure_declaration provides a shorthand to declare a procedure with an empty body.

Syntax

null_procedure_declaration ::=
[overriding_indicator]
procedure_specification is null;

Static Semantics

A null_procedure_declaration declares a null procedure. A completion is not allowed for a null_procedure_declaration.

Dynamic Semantics

The execution of a null procedure is invoked by a subprogram call. For the execution of a subprogram call on a null procedure, the execution of the subprogram_body has no effect.
The elaboration of a null_procedure_declaration has no effect.

Examples

procedure Simplify(Expr : in out Expression) is null; -- see 3.9
-- By default, Simplify does nothing, but it may be overridden in extensions of Expression


Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API