[fpc-pascal] Using constants in constant record definition
Simon Ameis
SAmeis.fpc at web.de
Sat Jun 15 12:04:23 CEST 2019
Am 13.06.2019 um 09:34 schrieb Dejan Boras:
> It's not a bug. There's no support in FPC/Pascal for using constants
> with a defined type in other declarations.
> Define your MYINTEGERCONST without a type, and it should work.
Thanks all. It was a bit late and while working with existent code, I
didn't came up with this idea.
The compiler switch {$WriteableConst OFF} doesn't change anything in
regards to typed constants. The only way is to use real constants which
may have an explicit typecast.
More information about the fpc-pascal
mailing list