E2283 Too many local constants. Use shorter procedures (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

One or more of your procedures contain so many string constant expressions that they exceed the compiler's internal storage limit. This can occur in code that is automatically generated. To fix this, either shorten your procedures or declare constant identifiers instead of using so many literals in the code.

The Object Pascal compilers for 32-bit Windows and OSX produce E2283 when the code generator gives up after literal/const values exceed 64Kbytes. This 64K limitation applies to string, set, and floating-point values in expressions of a function body, and the limitation is per function.


Currently, the Object Pascal compiler for 64-bit Windows does not produce E2283.