The impure keyword is used to declare a function that may return a different value given the same actual parameters, due to side effects.

 

Impure functions have access to a broader class of values than pure functions, and can modify objects that are outside their own scope.

 

Example

    impure function HoldCheck (Clk, Data) return Boolean;

 

LRM

    2.1

 

See also

image\diamond.gif  Function