6.7 Null Procedures
Syntax
Legality Rules
Static Semantics
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,
or on a procedure completed with a
null_procedure_declaration,
the execution of the
subprogram_body
has no effect.
The elaboration of a
null_procedure_declaration
has no other effect than to establish that the null procedure can be
called without failing the Elaboration_Check.
Examples
Example of the declaration
of a null procedure:
procedure Simplify(Expr :
in out Expression)
is null; --
see 3.9
--
By default, Simplify does nothing, but it can be overridden in extensions of Expression
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe