Sign in Join
FPDoc Onlineexperiment

IsConstValue function

In unit System

Check if a value is an actual constant.

Declaration

pascal
function IsConstValue(V: TAnyType): Boolean

Description

IsConst returns True if the value V is an actual constant, and False if not. This function is evaluated at compile-time. A value is an actual constant if its value is known at compile time and cannot change. This means that typed constants will result in a return value of False

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.