Array of constants as true constants
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
FPC 1.9.3; Apr 04, 2004 snapshot.
There should be a way to treat typed constants as true constants, allowing them to be used to define other constants. There is a {J} directive in delphi, which is supposed to do that, but for some reason the attached code generates an error in delphi, even with {
J+}.
At the very least, perhpas you could make a way to define an arrayed constant without making it typed, perhaps something like:
const
ArrayedConst: array [TSubRange] of const = (...);
Additional information:
Reporter: Michael K
EMail: technobot at lycos dot co dot uk
Mantis conversion info:
- Mantis ID: 5055
- OS: All
- Version: 1.9.3