Difference between revisions of "Constant"
From Lazarus wiki
Jump to navigationJump to searchJwdietrich (talk | contribs) |
Jwdietrich (talk | contribs) |
||
Line 26: | Line 26: | ||
[[Constants]] | [[Constants]] | ||
+ | [[Category:Constants]] | ||
[[Category:Pascal]] | [[Category:Pascal]] |
Revision as of 21:43, 20 April 2013
A constant is something that does not change, a fixed value.
Constants are defined in the const section of the program. When some value are constant the compiler can do some optimizations.
Some special constant values are e.g.
- Logical truth values
- Empty pointer value
- Mathematical constants