Difference between revisions of "Constant"

From Lazarus wiki
Jump to navigationJump to search
m
Line 4: Line 4:
  
 
Constants are defined in the [[Const|const]] section of the program. When some value are constant the [[Compiler|compiler]] can do some optimizations.
 
Constants are defined in the [[Const|const]] section of the program. When some value are constant the [[Compiler|compiler]] can do some optimizations.
 
 
 
  
 
Some special constant values are e.g.
 
Some special constant values are e.g.
  
- Logical truth values
+
Logical truth values
 
 
 
* [[False]]
 
* [[False]]
 
 
* [[True]]
 
* [[True]]
  
- Empty pointer value
+
Empty pointer value
 
 
 
* [[Nil]]
 
* [[Nil]]
  
- Mathematical constants
+
Mathematical constants
 
 
 
* [[Pi]]
 
* [[Pi]]
 
  
 
== read more ==
 
== read more ==
 
+
* [[Const]
[[Constants]]
+
* [[Constants]]
  
 
[[Category:Constants]]
 
[[Category:Constants]]
 
[[Category:Pascal]]
 
[[Category:Pascal]]

Revision as of 16:10, 26 July 2016

English (en) suomi (fi) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

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

read more